Свойство | Тип | Описание | |
---|---|---|---|
$instance | object | Instance of this class. |
Метод | Описание | |
---|---|---|
__construct ( ) | ||
add_core_custom_columns ( array $columns ) : array | Add age custom column. | |
add_ticket_id_title ( string $title ) : string | Add ticket ID to the ticket title in admin list screen | |
apply_ordering_criteria ( WP_Post[] $posts, WP_Query $query ) : WP_Post[] | Called by the 'posts_clauses' filter hook this method modifies WP_Query SQL for ticket post types when: | |
core_custom_columns_content ( array $column, integer $post_id ) | Manage core column content. | |
filter_staff ( WP_Query $wp_query ) : void | Filter tickets by assigned staff | |
get_instance ( ) : object | Return an instance of this class. | |
get_replies_query ( integer $ticket_id ) : WP_Query | Get all ticket replies | |
hide_closed_tickets ( ) : boolean | Hide closed tickets. | |
remove_excerpt ( string $content ) : string | Remove the ticket excerpt. | |
remove_quick_edit ( array $actions ) : array | Remove Quick Edit action | |
set_ordering_query_var ( WP_Query $query ) : void | Called by the 'pre_get_posts' filter hook this method sets the following to true when for the admin ticket list page: | |
ticket_row_class ( array $classes, array $class, integer $post_id ) : array | Filter the list of CSS classes for the current post. |
public add_core_custom_columns ( array $columns ) : array | ||
$columns | array | List of default columns |
Результат | array | Updated list of columns |
public add_ticket_id_title ( string $title ) : string | ||
$title | string | Original title |
Результат | string |
public apply_ordering_criteria ( WP_Post[] $posts, WP_Query $query ) : WP_Post[] | ||
$posts | WP_Post[] | |
$query | WP_Query | |
Результат | WP_Post[] |
public core_custom_columns_content ( array $column, integer $post_id ) | ||
$column | array | Column currently processed |
$post_id | integer | ID of the post being processed |
public filter_staff ( WP_Query $wp_query ) : void | ||
$wp_query | WP_Query | |
Результат | void |
public static get_instance ( ) : object | ||
Результат | object | A single instance of this class. |
public get_replies_query ( integer $ticket_id ) : WP_Query | ||
$ticket_id | integer | ID of the ticket we want to get the replies for |
Результат | WP_Query |
public hide_closed_tickets ( ) : boolean | ||
Результат | boolean | True if the closed tickets were hiddne, false otherwise |
public remove_excerpt ( string $content ) : string | ||
$content | string | Ticket excerpt |
Результат | string | Excerpt if applicable or empty string otherwise |
public remove_quick_edit ( array $actions ) : array | ||
$actions | array | An array of row action links. |
Результат | array | Updated array of row action links |
public set_ordering_query_var ( WP_Query $query ) : void | ||
$query | WP_Query | |
Результат | void |
protected static object $instance | ||
Результат | object |