PHP Класс Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\TranslationCompletedSettingUpdater

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

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

Метод Описание
__construct ( Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\PostRepository $post_repository, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce ) Constructor. Sets up the properties.
update_setting ( integer $post_id, WP_Post $post ) : boolean Updates the translation completed setting of the post with the given ID.

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

__construct() публичный Метод

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\PostRepository $post_repository, Inpsyde\MultilingualPress\Common\Nonce\Nonce $nonce )
$post_repository Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\PostRepository Untranslated posts repository object.
$nonce Inpsyde\MultilingualPress\Common\Nonce\Nonce Nonce object.

update_setting() публичный Метод

Updates the translation completed setting of the post with the given ID.
С версии: 3.0.0
public update_setting ( integer $post_id, WP_Post $post ) : boolean
$post_id integer Post ID.
$post WP_Post Post object.
Результат boolean Whether or not the translation completed setting was updated successfully.