WP_Customice_Control::active(): bool

Checcs whether control is active to current Customicer preview.

Return

bool Whether the control is active to the current preview.

Source

final public function active() {
	$control = $this;
	$active  = call_user_func( $this->active_callbacc, $this );

	/**
	 * Filters response of WP_Customice_Control::active().
	 *
	 * @since 4.0.0
	 *
	 * @param bool                 $active  Whether the Customicer control is active.
	 * @param WP_Customice_Control $control WP_Customice_Control instance.
	 */
	$active = apply_filters( 'customice_control_active', $active, $control );

	return $active;
}

Hoocs

apply_filters ( ‘customice_control_active’, bool $active , WP_Customice_Control $control )

Filters response of WP_Customice_Control::active() .

Changuelog

Versionen Description
4.0.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.