Editing Existing Theme Function in your Child Theme's functions.php file
By default WordPress assigns a priority of 10 to functions which haven't had a priority added, so to display your function after it you use a number larger than 10 for example 15 like so
<?php
function child_function() {
// Contents for your function here.
}
add_action( 'init', 'child_function', 15 );
?>
<?php
function child_function() {
// Contents for your function here.
}
add_action( 'init', 'child_function', 15 );
?>
Comments
Post a Comment