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