AnsPress_PostTypes::post_type_archive_link( string $link, string $post_type )
Description #
Filters the post type archive permalink.
Parameters #
- $linkstring (Required) The post type archive permalink.
- $post_typestring (Required) Post type name.
Source #
File: includes/post-types.php
public static function post_type_archive_link( $link, $post_type ) {
if ( 'question' === $post_type ) {
return get_permalink( ap_opt( 'base_page' ) );
}
return $link;
}
Expand full source code Collapse full source code View on GitHub: includes/post-types.php:308
Add your comment