Theme_Integration implements Registerable
Base theme integration class.
A theme integration class takes care of adding inline css styling to fix minor graphical glitches across themes.
Interfaces, Classes and Traits
- Registerable
Table of Contents
- $template : string
- The name of the current template.
- enqueue_dummy_handle() : void
- Enqueue dummt handle.
- enqueue_fix() : void
- Theme-specific inline css styling.
- get_dummy_handle() : string
- Generate an handle name for the dummy stylesheet to which we'll attach the custom inline styling.
- register() : void
- Hook into WP.
- should_enqueue() : bool
- Determine if the inline styling should enqueue or not.
- theme_inline_styling() : void
- Load the inline styling when needed.
Properties
$template
The name of the current template.
public
string
$template
= ''
Use wp_get_theme to get it.
Methods
enqueue_dummy_handle()
Enqueue dummt handle.
public
enqueue_dummy_handle() : void
Return values
void —enqueue_fix()
Theme-specific inline css styling.
public
abstract enqueue_fix() : void
Return values
void —get_dummy_handle()
Generate an handle name for the dummy stylesheet to which we'll attach the custom inline styling.
public
get_dummy_handle() : string
Return values
string —register()
Hook into WP.
public
register() : void
Return values
void —should_enqueue()
Determine if the inline styling should enqueue or not.
public
should_enqueue() : bool
Usually you check that the specific theme is enabled here.
Return values
bool —theme_inline_styling()
Load the inline styling when needed.
public
theme_inline_styling() : void