PHP 클래스 RWMB_Helper

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

공개 메소드들

메소드 설명
find_field ( string $field_id, integer $post_id = null ) : array | false Find field by field ID.
hash_fields ( string $post_type ) Hash all fields into an indexed array for search
meta ( string $key, array $args = [], integer | null $post_id = null ) : mixed Get post meta

메소드 상세

find_field() 공개 정적인 메소드

This function finds field in meta boxes registered by 'rwmb_meta_boxes' filter.
public static find_field ( string $field_id, integer $post_id = null ) : array | false
$field_id string Field ID
$post_id integer
리턴 array | false Field params (array) if success. False otherwise.

hash_fields() 공개 정적인 메소드

Hash all fields into an indexed array for search
public static hash_fields ( string $post_type )
$post_type string Post type

meta() 공개 정적인 메소드

Get post meta
public static meta ( string $key, array $args = [], integer | null $post_id = null ) : mixed
$key string Meta key. Required.
$args array Array of arguments. Optional.
$post_id integer | null Post ID. null for current post. Optional
리턴 mixed