ap_get_page_slug( string $slug )

Description #

Return AnsPress page slug.

Parameters #

  • $slug
    string (Required) Default page slug.

Source #

File: includes/theme.php

function ap_get_page_slug( $slug ) {
	$option = ap_opt( $slug . '_page_slug' );

	if ( ! empty( $option ) ) {
		$slug = $option;
	}

	return apply_filters( 'ap_page_slug_' . $slug, $slug );
}

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