Twitter\WordPress\Shortcodes\Share::getPostMeta PHP 메소드

getPostMeta() 공개 정적인 메소드

Get any Tweet values stored for an individual post
부터: 1.0.0
public static getPostMeta ( ) : array
리턴 array post meta Tweet values or empty array if no values stored
    public static function getPostMeta()
    {
        $post = get_post();
        if (!($post && isset($post->ID))) {
            return array();
        }
        $post_values = get_post_meta($post->ID, \Twitter\WordPress\Admin\Post\TweetIntent::META_KEY, true);
        if (!is_array($post_values)) {
            return array();
        }
        return $post_values;
    }