wphooks.info - widget_customizer_setting_args

widget_customizer_setting_args

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/class-wp-customize-widgets.php:
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
		/**
		 * Filters the common arguments supplied when constructing a Customizer setting.
		 *
		 * @since 3.9.0
		 *
		 * @see WP_Customize_Setting
		 *
		 * @param array  $args Array of Customizer setting arguments.
		 * @param string $id   Widget setting ID.
		 */
		return apply_filters( 'widget_customizer_setting_args', $args, $id );
	}

	/**
	 * Ensures sidebar widget arrays only ever contain widget IDS.
	 *
	 * Used as the 'sanitize_callback' for each $sidebars_widgets setting.
	 *
	 * @since 3.9.0
	 *