Method |
Description |
|
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. |
|