PHP Class RWMB_Thickbox_Image_Field

Inheritance: extends RWMB_Image_Field
Show file Open project: rilwis/meta-box

Public Methods

Method Description
add_actions ( ) Add custom actions for the field.
admin_enqueue_scripts ( ) Enqueue scripts and styles
allow_img_insertion ( array $vars ) : array Always enable insert to post button in the popup
html ( mixed $meta, array $field ) : string Get field HTML
value ( array $new, array $old, integer $post_id, array $field ) : array Get field value It's the combination of new (uploaded) images and saved images

Method Details

add_actions() public static method

Add custom actions for the field.
public static add_actions ( )

admin_enqueue_scripts() public static method

Enqueue scripts and styles
public static admin_enqueue_scripts ( )

allow_img_insertion() public static method

Always enable insert to post button in the popup
public static allow_img_insertion ( array $vars ) : array
$vars array
return array

html() public static method

Get field HTML
public static html ( mixed $meta, array $field ) : string
$meta mixed
$field array
return string

value() public static method

Get field value It's the combination of new (uploaded) images and saved images
public static value ( array $new, array $old, integer $post_id, array $field ) : array
$new array
$old array
$post_id integer
$field array
return array