PHP 클래스 RWMB_Image_Field

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

공개 메소드들

메소드 설명
admin_enqueue_scripts ( ) Enqueue scripts and styles.
file_html ( integer $image ) : string Get HTML markup for ONE uploaded image
file_info ( integer $file, array $args = [] ) : array | boolean Get uploaded file information
format_single_value ( array $field, array $value ) : string Format a single value for the helper functions.

메소드 상세

admin_enqueue_scripts() 공개 정적인 메소드

Enqueue scripts and styles.
public static admin_enqueue_scripts ( )

file_html() 공개 정적인 메소드

Get HTML markup for ONE uploaded image
public static file_html ( integer $image ) : string
$image integer Image ID
리턴 string

file_info() 공개 정적인 메소드

Get uploaded file information
public static file_info ( integer $file, array $args = [] ) : array | boolean
$file integer Attachment image ID (post ID). Required.
$args array Array of arguments (for size).
리턴 array | boolean False if file not found. Array of image info on success

format_single_value() 공개 정적인 메소드

Format a single value for the helper functions.
public static format_single_value ( array $field, array $value ) : string
$field array Field parameter
$value array The value
리턴 string