PHP Class Themosis\Metabox\Meta

Show file Open project: themosis/framework Class Usage Examples

Public Methods

Method Description
get ( integer $id, string $key = '', boolean $single = true ) : mixed Retrieve the meta data from the given post type ID and meta key.

Private Methods

Method Description
isFromDomain ( string $url ) : boolean Determine if the given URL belong to the domain.
parse ( mixed $default ) : mixed Parse the returned value by 'get_post_meta'. Convert URLs from the domain to their 'https' equivalent.

Method Details

get() public static method

Retrieve the meta data from the given post type ID and meta key.
public static get ( integer $id, string $key = '', boolean $single = true ) : mixed
$id integer The post type ID.
$key string The meta name.
$single boolean Default to true. False to return as an array.
return mixed The meta value.