woocommerce_admin_preload_settings

woocommerce_admin_preload_settings

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_admin_preload_settings') is found 2 times:

  • /src/Internal/Admin/Loader.php line 364
    		 * The woocommerce_admin_preload_settings filter
    		 *
    		 * @since 6.5.0
    		 */
    		$preload_settings = apply_filters( 'woocommerce_admin_preload_settings', array() );
    		if ( ! empty( $preload_settings ) ) {
    			$setting_options = new \WC_REST_Setting_Options_V2_Controller();
    			foreach ( $preload_settings as $group ) {
    				$group_settings   = $setting_options->get_group_settings( $group );
    				$preload_settings = array();
    				foreach ( $group_settings as $option ) {
    
  • /src/Internal/Admin/Settings.php line 158
    			}
    		}
    
    		//phpcs:ignore
    		$preload_settings = apply_filters( 'woocommerce_admin_preload_settings', array() );
    		if ( ! empty( $preload_settings ) ) {
    			$setting_options = new \WC_REST_Setting_Options_V2_Controller();
    			foreach ( $preload_settings as $group ) {
    				$group_settings   = $setting_options->get_group_settings( $group );
    				$preload_settings = array();
    				foreach ( $group_settings as $option ) {
    

See this hook used in plugins: