Shoptimizer extends Theme_Integration implements Registerable
Shoptimizer Theme Integration.
Tags
Interfaces, Classes and Traits
- Registerable
Table of Contents
- $template : string
- The name of the current template.
- add_custom_css() : void
- Add custom CSS to hide Shoptimizer sorting element.
- register() : void
- Register the integration.
- set_high_priority() : int
- Set high priority for all WCF actions.
- theme_is_enabled() : bool
- Check if the theme is enabled.
Properties
$template
The name of the current template.
public
string
$template
= 'shoptimizer'
Use wp_get_theme to get it.
Methods
add_custom_css()
Add custom CSS to hide Shoptimizer sorting element.
public
add_custom_css() : void
Return values
void —register()
Register the integration.
public
register() : void
Return values
void —set_high_priority()
Set high priority for all WCF actions.
public
set_high_priority(int $priority) : int
Parameters
- $priority : int
-
The current priority.
Return values
int —The modified priority.
theme_is_enabled()
Check if the theme is enabled.
public
theme_is_enabled() : bool