PHP Class CPTP, custom-post-type-permalinks

Facade.
Since: 0.9.4
Show file Open project: torounit/custom-post-type-permalinks Class Usage Examples

Public Properties

Property Type Description
$modules CPTP_Module[]

Public Methods

Method Description
activate ( ) Activation Hooks This function will browse initialized modules and execute their activation_hook methods.
get_instance ( ) Singleton
init ( ) init
set_module ( $name, CPTP_Module $module ) set module.
uninstall ( ) Uninstall Hooks This function will browse initialized modules and execute their uninstall_hook methods.

Private Methods

Method Description
__construct ( )
init_modules ( ) initialize modules.
load_modules ( ) Load CPTP_Modules.

Method Details

activate() public method

It will also set the uninstall_hook to the cptp_uninstall function which behaves the same way as this one.
Since: 2.0.0
public activate ( )

get_instance() public static method

Singleton
public static get_instance ( )

init() public method

Fire Module::add_hook
Since: 0.9.5
public init ( )

set_module() public method

set module.
Since: 1.5.0
public set_module ( $name, CPTP_Module $module )
$name
$module CPTP_Module

uninstall() public static method

Uninstall Hooks This function will browse initialized modules and execute their uninstall_hook methods.
Since: 2.0.0
public static uninstall ( )

Property Details

$modules public property

public CPTP_Module[] $modules
return CPTP_Module[]