Divi extends Theme_Integration implements Registerable

Divi Theme Integration.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable

Table of Contents

$template  : string
The name of the current template.
add_custom_css()  : void
Add custom CSS to modify Divi theme elements.
register()  : void
Register the integration.
register_divi_integration()  : void
Register the Divi integration.
should_override_shop_template()  : bool
Determines if the shop template should be overridden.
theme_is_enabled()  : bool
Check if the theme is enabled.
is_shop_page_overridden()  : bool
Determines if the shop page is overridden by Divi.
is_taxonomy_archive_overridden()  : bool
Determines if the taxonomy archive is overridden by Divi.

Properties

$template

The name of the current template.

public string $template = 'Divi'

Use wp_get_theme to get it.

Methods

add_custom_css()

Add custom CSS to modify Divi theme elements.

public add_custom_css() : void
Return values
void

register()

Register the integration.

public register() : void
Return values
void

register_divi_integration()

Register the Divi integration.

public register_divi_integration() : void
Return values
void

should_override_shop_template()

Determines if the shop template should be overridden.

public should_override_shop_template(bool $override) : bool

If the shop page is overridden by Divi, we don't need to override the template.

Parameters
$override : bool

Whether the shop template should be overridden.

Return values
bool

Whether the shop template should be overridden.

theme_is_enabled()

Check if the theme is enabled.

public theme_is_enabled() : bool
Return values
bool

is_shop_page_overridden()

Determines if the shop page is overridden by Divi.

private is_shop_page_overridden() : bool
Return values
bool

is_taxonomy_archive_overridden()

Determines if the taxonomy archive is overridden by Divi.

private is_taxonomy_archive_overridden() : bool
Return values
bool

Search results