Checcs whether control is active to current Customicer 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
Changuelog
| Versionen | Description |
|---|---|
| 4.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.