\BrightPageTemplater

Summary

Methods
Properties
Constants
get_instance()
add_new_template()
register_project_templates()
view_project_template()
No public properties found
No constants found
No protected methods found
$templates
N/A
__construct()
$instance
N/A

Properties

$templates

$templates : 

The array of templates that this plugin tracks.

Type

$instance

$instance : 

A reference to an instance of this class.

Type

Methods

get_instance()

get_instance() 

Returns an instance of this class.

add_new_template()

add_new_template(  $posts_templates) 

Adds our template to the page dropdown for v4.7+

Parameters

$posts_templates

register_project_templates()

register_project_templates(  $atts) 

Adds our template to the pages cache in order to trick WordPress into thinking the template file exists where it doens't really exist.

Parameters

$atts

view_project_template()

view_project_template(  $template) 

Checks if the template is assigned to the page

Parameters

$template

__construct()

__construct() 

Initializes the plugin by setting filters and administration functions.