FacetWP – move init to priority = 9

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

add_action( ‘init’, function() {
if ( function_exists( ‘FWP’ ) ) {
remove_action( ‘init’, array( FWP()->init, ‘init’ ), 10 );
add_action( ‘init’, array( FWP()->init, ‘init’ ), 9 );
}
}, 5 );

{{/gist}}