Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// filter Willow Config ##
// Priority -- Willow = 1, Q Plugin = 10, Extension = 10, Parent Theme = 100, Child Theme = 1000 ##
\add_filter( 'willow/config/load',
function( $args ){
$source = null; // context source ##
return self::filter( $args, $source );
}
, 1, 1 );
\add_filter( 'willow/config/load',
function( $args ){
$source = 'plugin'; // context source ##
return self::filter( $args, $source );
}
, 10, 1 );
\add_filter( 'willow/config/load',
function( $args ){
$source = 'extend'; // context source ##
return self::filter( $args, $source );
}
, 50, 1 );
\add_filter( 'willow/config/load',
function( $args ){
$source = 'parent'; // context source ##
return self::filter( $args, $source );
}
, 100, 1 );
\add_filter( 'willow/config/load',
function( $args ){
$source = 'child'; // context source ##
return self::filter( $args, $source );
}
, 1000, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment