He puesto el siguiente código PHP mínimo en el functions.php y funciona.
add_action( 'init', 'test' );
function test() {
echo 'Testing...123';
}
pero si uso is_front_page() para especificar solo aplique esto en la página principal ( front-page.php ), entonces no funcionará, ¿por qué es así?
if ( is_front_page() ) {
add_action( 'init', 'test' );
function test() {
echo 'Testing...123';
}
}
.