PHP Класс Jetpack_Widget_Conditions, jetpack

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$passed_template_redirect

Открытые методы

Метод Описание
filter_widget ( array $instance ) : array Determine whether the widget should be displayed based on conditions set by the user.
generate_condition_key ( array $rule ) : string Generates a condition key based on the rule array
init ( )
maybe_get_split_term ( $old_term_id = '', $taxonomy = '' )
sidebars_widgets ( array $widget_areas ) : array Filter the list of widgets for a sidebar so that active sidebars work as expected.
strcasecmp_name ( $a, $b )
template_redirect ( )
widget_admin_setup ( )
widget_conditions_admin ( $widget, $return, array $instance ) Add the widget conditions to each widget in the admin.
widget_conditions_has_children ( ) This is the AJAX endpoint for the has_children input.
widget_conditions_has_children_echo ( $major = '', $minor = '', $has_children = false ) Provide an option to include children of pages.
widget_conditions_options ( ) This is the AJAX endpoint for the second level of conditions.
widget_conditions_options_echo ( $major = '', $minor = '' ) Provided a second level of granularity for widget conditions.
widget_update ( $instance, array $new_instance, array $old_instance ) : array On an AJAX update of the widget settings, process the display conditions.

Описание методов

filter_widget() публичный статический Метод

Determine whether the widget should be displayed based on conditions set by the user.
public static filter_widget ( array $instance ) : array
$instance array The widget settings.
Результат array Settings to display or bool false to hide.

generate_condition_key() статический публичный Метод

Generates a condition key based on the rule array
static public generate_condition_key ( array $rule ) : string
$rule array
Результат string key used to retrieve the condition.

init() публичный статический Метод

public static init ( )

maybe_get_split_term() публичный статический Метод

public static maybe_get_split_term ( $old_term_id = '', $taxonomy = '' )

sidebars_widgets() публичный статический Метод

Filter the list of widgets for a sidebar so that active sidebars work as expected.
public static sidebars_widgets ( array $widget_areas ) : array
$widget_areas array An array of widget areas and their widgets.
Результат array The modified $widget_area array.

strcasecmp_name() публичный статический Метод

public static strcasecmp_name ( $a, $b )

template_redirect() публичный статический Метод

public static template_redirect ( )

widget_admin_setup() публичный статический Метод

public static widget_admin_setup ( )

widget_conditions_admin() публичный статический Метод

Add the widget conditions to each widget in the admin.
public static widget_conditions_admin ( $widget, $return, array $instance )
$widget unused.
$return unused.
$instance array The widget settings.

widget_conditions_has_children() публичный статический Метод

This is the AJAX endpoint for the has_children input.
public static widget_conditions_has_children ( )

widget_conditions_has_children_echo() публичный статический Метод

Provide an option to include children of pages.
public static widget_conditions_has_children_echo ( $major = '', $minor = '', $has_children = false )

widget_conditions_options() публичный статический Метод

This is the AJAX endpoint for the second level of conditions.
public static widget_conditions_options ( )

widget_conditions_options_echo() публичный статический Метод

Provided a second level of granularity for widget conditions.
public static widget_conditions_options_echo ( $major = '', $minor = '' )

widget_update() публичный статический Метод

On an AJAX update of the widget settings, process the display conditions.
public static widget_update ( $instance, array $new_instance, array $old_instance ) : array
$new_instance array New settings for this instance as input by the user.
$old_instance array Old settings for this instance.
Результат array Modified settings.

Описание свойств

$passed_template_redirect статическое публичное свойство

static public $passed_template_redirect