PHP 클래스 RWMB_Core

파일 보기 프로젝트 열기: rilwis/meta-box 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Register hooks.
fix_page_template ( WP_Post $post ) WordPress will prevent post data saving if a page template has been selected that does not exist This is especially a problem when switching to our theme, and old page templates are in the post data Unset the page template if the page does not exist to allow the post to save
get_fields ( ) : array Get all registered fields.
get_meta_boxes ( ) Get registered meta boxes via a filter.
load_textdomain ( ) Load plugin translation.
plugin_links ( array $links ) : array Add links to Documentation and Extensions in plugin's list of action links.
register_meta_boxes ( ) Register meta boxes.
register_wpml_hooks ( ) Register wpml compatibility hooks

메소드 상세

__construct() 공개 메소드

Register hooks.
public __construct ( )

fix_page_template() 공개 메소드

WordPress will prevent post data saving if a page template has been selected that does not exist This is especially a problem when switching to our theme, and old page templates are in the post data Unset the page template if the page does not exist to allow the post to save
부터: 4.3.10
public fix_page_template ( WP_Post $post )
$post WP_Post

get_fields() 공개 정적인 메소드

Get all registered fields.
public static get_fields ( ) : array
리턴 array

get_meta_boxes() 공개 정적인 메소드

Advantages: - prevents duplicated global variables. - allows users to remove/hide registered meta boxes.
public static get_meta_boxes ( )

load_textdomain() 공개 메소드

Load plugin translation.
public load_textdomain ( )

register_meta_boxes() 공개 메소드

Advantages: - prevents incorrect hook. - no need to check for class existences.
public register_meta_boxes ( )

register_wpml_hooks() 공개 메소드

Register wpml compatibility hooks
public register_wpml_hooks ( )