Class AgentRoster
Methods summary
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
rewrite_flush( )
Registers post types, taxonomies and flushes rewrite rules only once on activation |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public static
boolean|string
|
#
get_agent_recent_posts( $agent_name )
Returns recent blog posts with excerpts by a category that is the same as agent's full name. |
public static
string
|
|
public
boolean
|
#
is_template( string $templatePath, string $context = '' )
Checks if provided template path points to an 'agent' template, given the context. |
public
string
|
#
use_template( string $template )
Checks to see if appropriate templates are present in active template directory. Otherwise uses templates present in plugin's template directory. Hooked onto template_include |
Constants summary
string |
NAME
|
#
'Agent Roster'
|
string |
AGENTS_TAXONOMY
|
#
'agent_tags'
|