Carbon_Fields\Helper\Helper::get_the_post_meta PHP Метод

get_the_post_meta() публичный статический Метод

Uses the ID of the current post in the loop.
public static get_the_post_meta ( string $name, string $type = null ) : mixed
$name string Custom field name.
$type string Custom field type (optional).
Результат mixed Meta value.
    public static function get_the_post_meta($name, $type = null)
    {
        return self::get_post_meta(get_the_ID(), $name, $type);
    }

Usage Example

Пример #1
0
 function carbon_get_the_post_meta($name, $type = null)
 {
     return Helper::get_the_post_meta($name, $type);
 }