Filters - JoryHogeveen/widget-css-classes GitHub Wiki
widget_css_classes_id_input_capability
Change the capability to access the CSS ID field.
@since 1.5.0
@param string
@return string
widget_css_classes_class_input_capability
Change the capability to access the CSS Classes field.
@since 1.5.0
@param string
@return string
widget_css_classes_class_select_capability
Change the capability to access the predefined CSS Classes select field.
NOTE: If the user cannot access the predefined classes the regular input field is disabled as well.
@since 1.5.0
@param string
@return string
widget_css_classes_id
Change the label for the CSS ID form field.
@param string
@return string
widget_css_classes_class
Change the label for the CSS Classes form field.
@param string
@return string
widget_css_classes
Modify the list of all CSS classes.
Can also be used for ordering etc.
@since 1.5.0
@param array $custom_classes
@param string $widget_id
@param int $widget_num
@param array $widget_opt
@param WP_Widget $widget_obj
@return array
widget_css_classes_custom
Modify the list of custom CSS classes.
Can also be used for ordering etc.
@since 1.5.0
@param array $custom_classes
@param string $widget_id
@param int $widget_num
@param array $widget_opt
@param WP_Widget $widget_obj
@return array
widget_css_classes_number
Change the widget-# CSS class
@param string
@return string
widget_css_classes_first
Change the widget-first CSS class
@param string
@return string
widget_css_classes_last
Change the widget-last CSS class
@param string
@return string
widget_css_classes_even
Change the widget-even CSS class
@param string
@return string
widget_css_classes_odd
Change the widget-odd CSS class
@param string
@return string
widget_css_classes_set_settings
Modify the plugin settings. Overwrites the DB values.
IMPORTANT: Do not change the variable types of the values! Type casting will be overruled.
@since 1.5.0
@param array $settings {
@type bool $fix_widget_params
@type bool $show_id
@type int $type
@type array|string $defined_classes Array of predefined classes.
Optionally allows a delimiter separated string.
See WCSSC_Lib::parse_defined_classes().
@type bool $show_number
@type bool $show_location
@type bool $show_evenodd
}
@return array
widget_css_classes_default_settings
Modify the plugin default settings. Doesn't change the DB values.
IMPORTANT: Do not change the variable types of the values! Type casting will be overruled.
@since 1.5.0
@param array $default_settings See `widget_css_classes_set_settings` filter for parameters.
@return array