PHP Интерфейс Inpsyde\MultilingualPress\Module\Trasher\TrasherSettingRepository

С версии: 3.0.0
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
get ( integer $post_id ) : boolean Returns the trasher setting value for the post with the given ID, or the current post.
update ( integer $post_id, boolean $value ) : boolean Updates the trasher setting value for the post with the given ID.

Описание методов

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.

update() публичный метод

Updates the trasher setting value for the post with the given ID.
С версии: 3.0.0
public update ( integer $post_id, boolean $value ) : boolean
$post_id integer Post ID.
$value boolean Setting value to be set.
Результат boolean Whether or not the trasher setting value was updated successfully.