PHP Class WPKB\Router

Mostrar archivo Open project: ibericode/wp-knowledge-base

Public Properties

Property Type Description
$archive_page null | WP_Post

Public Methods

Method Description
__construct ( integer $archive_page_id ) Types constructor.
add_hooks ( ) Add hooks
determine_base_slug ( ) : string
modify_post_type_archive_request ( array $query_vars ) : array
register ( ) Register the various types

Method Details

__construct() public method

Types constructor.
public __construct ( integer $archive_page_id )
$archive_page_id integer

add_hooks() public method

Add hooks
public add_hooks ( )

determine_base_slug() public method

public determine_base_slug ( ) : string
return string

modify_post_type_archive_request() public method

public modify_post_type_archive_request ( array $query_vars ) : array
$query_vars array
return array

register() public method

Register the various types
public register ( )

Property Details

$archive_page public_oe property

public null|WP_Post $archive_page
return null | WP_Post