PHP 클래스 Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\TypeSafePostRepository

부터: 3.0.0
상속: implements Inpsyde\MultilingualPress\Widget\Dashboard\UntranslatedPosts\PostRepository
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

메소드 설명
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.