PHP 클래스 Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\URLFilter

부터: 3.0.0
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

메소드 설명
__construct ( Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\PostTypeRepository $post_type_repository ) Constructor. Sets up the properties.
disable ( ) : boolean Removes the filter.
enable ( ) : boolean Adds the filter.
unprettify_permalink ( string $post_link, WP_Post $post ) : string Filters the post type link URL and returns a query-based representation, if set for the according post type.

비공개 메소드들

메소드 설명
is_draft_or_pending ( WP_Post $post ) : boolean Checks if the given post is a draft or pending.

메소드 상세

__construct() 공개 메소드

Constructor. Sets up the properties.
부터: 3.0.0
public __construct ( Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\PostTypeRepository $post_type_repository )
$post_type_repository Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\PostTypeRepository Post type repository object.

disable() 공개 메소드

Removes the filter.
부터: 3.0.0
public disable ( ) : boolean
리턴 boolean Whether or not the filter was removed successfully.

enable() 공개 메소드

Adds the filter.
부터: 3.0.0
public enable ( ) : boolean
리턴 boolean Whether or not the filter was added successfully.