PHP 클래스 Papi_Admin_Columns, papi

파일 보기 프로젝트 열기: wp-papi/papi

보호된 프로퍼티들

프로퍼티 타입 설명
$post_type string Current post type.
$taxonomy string Current taxonomy.

공개 메소드들

메소드 설명
__construct ( ) The constructor.
manage_page_type_posts_columns ( array $defaults = [] ) : array Add custom table header to page or taxonomy type.
manage_page_type_posts_custom_column ( string $column_name, integer $post_id, integer $term_id = null ) Add custom table column to page or taxonomy type.
pre_get_posts ( WP_Query $query ) : WP_Query Filter posts on load if page_type query string is set.
restrict_page_types ( ) Filter page types in post type list.

보호된 메소드들

메소드 설명
get_meta_type_value ( ) : string Get meta type value.
setup_actions ( ) Setup actions.
setup_filters ( ) Setup filters.
setup_globals ( ) Setup globals.

메소드 상세

__construct() 공개 메소드

The constructor.
public __construct ( )

get_meta_type_value() 보호된 메소드

Get meta type value.
protected get_meta_type_value ( ) : string
리턴 string

manage_page_type_posts_columns() 공개 메소드

Add custom table header to page or taxonomy type.
public manage_page_type_posts_columns ( array $defaults = [] ) : array
$defaults array
리턴 array

manage_page_type_posts_custom_column() 공개 메소드

Add custom table column to page or taxonomy type.
public manage_page_type_posts_custom_column ( string $column_name, integer $post_id, integer $term_id = null )
$column_name string
$post_id integer
$term_id integer

pre_get_posts() 공개 메소드

Filter posts on load if page_type query string is set.
public pre_get_posts ( WP_Query $query ) : WP_Query
$query WP_Query
리턴 WP_Query

restrict_page_types() 공개 메소드

Filter page types in post type list.
public restrict_page_types ( )

setup_actions() 보호된 메소드

Setup actions.
protected setup_actions ( )

setup_filters() 보호된 메소드

Setup filters.
protected setup_filters ( )

setup_globals() 보호된 메소드

Setup globals.
protected setup_globals ( )

프로퍼티 상세

$post_type 보호되어 있는 프로퍼티

Current post type.
protected string $post_type
리턴 string

$taxonomy 보호되어 있는 프로퍼티

Current taxonomy.
protected string $taxonomy
리턴 string