PHP 클래스 Jetpack_Widget_Conditions, jetpack

파일 보기 프로젝트 열기: automattic/jetpack 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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