For my first post i want to show you how to do an “hello world” with PHP in WordPress

PHP:

<?php
  echo "hola mundo";
?>

WordPress:

for this example we need to add the below code on our functions.php file of the active theme.

function hello_world(){
  wp_die("Hello World!");
}
add_action('init', 'hello_world');