Inpsyde\MultilingualPress\Module\Trasher\TypeSafeTrasherSettingRepository::get PHP Method

get() public method

Returns the trasher setting value for the post with the given ID, or the current post.
Since: 3.0.0
public get ( integer $post_id ) : boolean
$post_id integer Optional. Post ID. Defaults to 0.
return 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