functions.php

Table of Contents

getwid_get_plugin_path()  : string
Gets plugin's absolute directory path.
getwid_get_plugin_url()  : string
Gets plugin's URL.
getwid_get_template_part()  : mixed
Get template part.
getwid_locate_template()  : mixed
Retrieve the name of the highest priority template file that exists.
getwid_maybe_add_option()  : mixed
getwid_generate_section_content_width_css()  : string
Generate section content width css
getwid_generate_smooth_animation_css()  : string
Generate smooth animations css
getwid_custom_color_style_and_class()  : string
Generate text color/background color style & class
getwid_custom_paddings_style_and_class()  : string
Generate custom paddings style & class
getwid_custom_alignment_classes()  : string
Generate custom alignment classes
getwid_custom_gradient_styles()  : string
Generate custom gradient styles
getwid_build_custom_post_type_query()  : array<string|int, mixed>
Build WP Query
getwid_build_meta_query()  : array<string|int, mixed>
has_getwid_nested_blocks()  : mixed
Determine whether a post or content string has Getwid "nested" blocks.
getwid_acf_is_active()  : mixed
getwid_is_block_editor()  : mixed
Determines whether the block editor is loaded.
getwid_recursive_sanitize_array()  : mixed
Recursive sanitation for an array

Functions

getwid_get_plugin_path()

Gets plugin's absolute directory path.

getwid_get_plugin_path([string $path = '' ]) : string
Parameters
$path : string = ''

Relative path

getwid_get_plugin_url()

Gets plugin's URL.

getwid_get_plugin_url([string $path = '' ]) : string
Parameters
$path : string = ''

getwid_get_template_part()

Get template part.

getwid_get_template_part(string $slug[, mixed $attributes = array() ][, mixed $extract = false ][, mixed $extra_attr = array() ]) : mixed
Parameters
$slug : string
$attributes : mixed = array()
$extract : mixed = false
$extra_attr : mixed = array()

getwid_locate_template()

Retrieve the name of the highest priority template file that exists.

getwid_locate_template(string $slug) : mixed
Parameters
$slug : string

getwid_maybe_add_option()

getwid_maybe_add_option(mixed $option_name, mixed $option_value, mixed $autoload) : mixed
Parameters
$option_name : mixed
$option_value : mixed
$autoload : mixed

getwid_generate_section_content_width_css()

Generate section content width css

getwid_generate_section_content_width_css() : string

getwid_generate_smooth_animation_css()

Generate smooth animations css

getwid_generate_smooth_animation_css() : string

getwid_custom_color_style_and_class()

Generate text color/background color style & class

getwid_custom_color_style_and_class(mixed &$style, mixed &$class, mixed $attributes[, mixed $process = 'color' ][, mixed $is_back_end = false ][, mixed $custom_color = false ]) : string
Parameters
$style : mixed
$class : mixed
$attributes : mixed
$process : mixed = 'color'
$is_back_end : mixed = false
$custom_color : mixed = false

getwid_custom_paddings_style_and_class()

Generate custom paddings style & class

getwid_custom_paddings_style_and_class(mixed &$style, mixed &$class, mixed $attributes) : string
Parameters
$style : mixed
$class : mixed
$attributes : mixed

getwid_custom_alignment_classes()

Generate custom alignment classes

getwid_custom_alignment_classes(mixed &$class, mixed $attributes) : string
Parameters
$class : mixed
$attributes : mixed

getwid_custom_gradient_styles()

Generate custom gradient styles

getwid_custom_gradient_styles(mixed $prefix, mixed &$style, mixed $attributes) : string
Parameters
$prefix : mixed
$style : mixed
$attributes : mixed

getwid_build_custom_post_type_query()

Build WP Query

getwid_build_custom_post_type_query(mixed $attributes) : array<string|int, mixed>
Parameters
$attributes : mixed

getwid_build_meta_query()

getwid_build_meta_query(mixed $meta_query) : array<string|int, mixed>
Parameters
$meta_query : mixed

has_getwid_nested_blocks()

Determine whether a post or content string has Getwid "nested" blocks.

has_getwid_nested_blocks() : mixed
Tags
since
1.5.3

getwid_acf_is_active()

getwid_acf_is_active() : mixed

getwid_is_block_editor()

Determines whether the block editor is loaded.

getwid_is_block_editor() : mixed
Tags
since
1.7.6

getwid_recursive_sanitize_array()

Recursive sanitation for an array

getwid_recursive_sanitize_array( $array) : mixed
Parameters
$array :
Tags
since
1.7.7

Search results