Twitter\WordPress\Shortcodes\Share::getPostMeta PHP Method

getPostMeta() public static method

Get any Tweet values stored for an individual post
Since: 1.0.0
public static getPostMeta ( ) : array
return 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;
    }