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

update() public method

Updates the trasher setting value for the post with the given ID.
Since: 3.0.0
public update ( integer $post_id, boolean $value ) : boolean
$post_id integer Post ID.
$value boolean Setting value to be set.
return boolean Whether or not the trasher setting value was updated successfully.
    public function update($post_id, $value)
    {
        return (bool) update_post_meta($post_id, TrasherSettingRepository::META_KEY, (bool) $value);
    }
TypeSafeTrasherSettingRepository