WPDK
1.5.0
WordPress Development Kit
|
Public Member Functions | |
__construct (WPDKWordPressPlugin $plugin=null) | |
Construct. More... | |
_body_class ($classes) | |
Adding class in body tag. More... | |
after_setup_theme () | |
WordPress action to setup theme. More... | |
template_redirect () | |
WordPress action before theme is displayed. More... | |
template_include ($template) | |
WordPress filter before a template is loaded. More... | |
wp () | |
WordPress action for start. More... | |
wp_head () | |
WordPress action in head theme. More... | |
wp_footer () | |
WordPress action for theme footer. More... | |
wp_enqueue_scripts () | |
WordPress action for scripts and styles. More... | |
Public Member Functions inherited from WPDKObject | |
__className () | |
Returns the class object. More... | |
__parentClass () | |
Returns the class object for the receiver’s superclass. More... | |
__isClass ($class) | |
Brief. More... | |
__isSubclassOfClass ($class) | |
Return TRUE if the receiving class is a subclass of —or identical to— $class, otherwise FALSE. More... | |
Data Fields | |
$__version = '0.9.1' | |
Version. More... | |
$plugin | |
Plugin pointer. More... | |
Data Fields inherited from WPDKObject | |
$__version = '1.0.0' | |
The version number assigned to the class. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from WPDKObject | |
static | __delta ($last_version, $old_version) |
Object delta compare for combine. More... | |
static | delta ($last_version, $old_version) |
static | __dump ($var, $monitor=false) |
Dump a variable. More... | |
Manage the frontend theme area
This class is used when the frontend is loaded. You can subclassing this class for get a lot of facilities when you have to manage the theme interactions.
This class prepare for us some useful and common action/filter hook.
Definition at line 20 of file wpdk-wordpress-theme.php.
__construct | ( | WPDKWordPressPlugin | $plugin = null | ) |
Construct.
Create a WPDKWordPressTheme object instance
WPDKWordPressPlugin | $plugin | Optional. Your main plugin instance |
Definition at line 49 of file wpdk-wordpress-theme.php.
_body_class | ( | $classes | ) |
Adding class in body tag.
Called when WordPress makes the class attribute of body
tag
array | $classes | List of classes |
Definition at line 84 of file wpdk-wordpress-theme.php.
after_setup_theme | ( | ) |
WordPress action to setup theme.
Called by after_setup_theme action
Definition at line 102 of file wpdk-wordpress-theme.php.
template_include | ( | $template | ) |
WordPress filter before a template is loaded.
Called by template_include
filter. This filter is useful to change the defaul theme filename.
string | $template | The URL of template |
Definition at line 126 of file wpdk-wordpress-theme.php.
template_redirect | ( | ) |
WordPress action before theme is displayed.
Called by template_redirect
action. This action is called before the frontend theme is displayed.
Definition at line 112 of file wpdk-wordpress-theme.php.
wp | ( | ) |
WordPress action for start.
Called by wp
action
Definition at line 137 of file wpdk-wordpress-theme.php.
wp_enqueue_scripts | ( | ) |
WordPress action for scripts and styles.
Called by wp_enqueue_scripts
action. You will use this action to register (do a queue) scripts and styles.
Definition at line 169 of file wpdk-wordpress-theme.php.
wp_footer | ( | ) |
WordPress action for theme footer.
Called by wp_footer action. This action is called in the footer theme.
Definition at line 159 of file wpdk-wordpress-theme.php.
wp_head | ( | ) |
WordPress action in head theme.
Called by wp_head
action. This action is called after the head
section and before the body
tag.
Definition at line 148 of file wpdk-wordpress-theme.php.
string $__version = '0.9.1' |
WPDKWordPressPlugin $plugin |