AnsPress_PostTypes::post_type_archive_link( string $link, string $post_type )

Description #

Filters the post type archive permalink.

Parameters #

  • $link
    string (Required) The post type archive permalink.
  • $post_type
    string (Required) Post type name.

Changelog #


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;

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment