Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: widget_customizer_setting_args

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
806            * Filter the common arguments supplied when constructing a Customizer setting.
807            *
808            * @since 3.9.0
809            *
810            * @see WP_Customize_Setting
811            *
812            * @param array  $args Array of Customizer setting arguments.
813            * @param string $id   Widget setting ID.
814            */
815           return apply_filters( 'widget_customizer_setting_args', $args, $id );
816      }
817
818      /**
819       * Make sure that sidebar widget arrays only ever contain widget IDS.
820       *
821       * Used as the 'sanitize_callback' for each $sidebars_widgets setting.
822       *
823       * @since 3.9.0
824       * @access public