woocommerce_admin_preload_options

woocommerce_admin_preload_options

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_options') is found 2 times:

  • /src/Internal/Admin/Loader.php line 352
    		 * The woocommerce_admin_preload_options filter
    		 *
    		 * @since 6.5.0
    		 */
    		$preload_options = apply_filters( 'woocommerce_admin_preload_options', array() );
    		if ( ! empty( $preload_options ) ) {
    			foreach ( $preload_options as $option ) {
    				$settings['preloadOptions'][ $option ] = get_option( $option );
    			}
    		}
    
    
  • /src/Internal/Admin/Settings.php line 150
    			);
    		}
    
    		//phpcs:ignore
    		$preload_options = apply_filters( 'woocommerce_admin_preload_options', array() );
    		if ( ! empty( $preload_options ) ) {
    			foreach ( $preload_options as $option ) {
    				$settings['preloadOptions'][ $option ] = get_option( $option );
    			}
    		}
    
    

See this hook used in plugins: