Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
is_draft_or_pending ( WP_Post $post ) : boolean | Checks if the given post is a draft or pending. |
public __construct ( Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\PostTypeRepository $post_type_repository ) | ||
$post_type_repository | Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\PostTypeRepository | Post type repository object. |
public unprettify_permalink ( string $post_link, WP_Post $post ) : string | ||
$post_link | string | Post URL. |
$post | WP_Post | Post object. |
return | string | The (filtered) post type link URL. |