Inpsyde\MultilingualPress\Module\Trasher\TypeSafeTrasherSettingRepository::get PHP 메소드

get() 공개 메소드

Returns the trasher setting value for the post with the given ID, or the current post.
부터: 3.0.0
public get ( integer $post_id ) : boolean
$post_id integer Optional. Post ID. Defaults to 0.
리턴 boolean The trasher setting value for the post with the given ID, or the current post.
    public function get($post_id = 0)
    {
        return (bool) get_post_meta($post_id ?: get_the_ID(), TrasherSettingRepository::META_KEY, true);
    }
TypeSafeTrasherSettingRepository