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

С версии: 3.0.0
Наследование: implements Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\PostRepository
Показать файл Открыть проект

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

Метод Описание
get_untranslated_posts ( ) : WP_Pos\WP_Post[] Returns all untranslated posts for the current site.
is_post_translated ( integer $post_id ) : boolean Checks if the post with the given ID has been translated.
update_post ( integer $post_id, boolean $value ) : boolean Updates the translation complete setting value for the post with the given ID.

Приватные методы

Метод Описание
update_deprecated_post_meta ( integer $post_id ) : void Updates the meta value for the given post (i.e., deletes the deprecated key and uses the correct one).

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

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

Returns all untranslated posts for the current site.
С версии: 3.0.0
public get_untranslated_posts ( ) : WP_Pos\WP_Post[]
Результат WP_Pos\WP_Post[] All untranslated posts for the current site.

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

Checks if the post with the given ID has been translated.
С версии: 3.0.0
public is_post_translated ( integer $post_id ) : boolean
$post_id integer Optional. Post ID. Defaults to 0.
Результат boolean Whether or not the post with the given ID has been translated.

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

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