Trying to learn WP plugin development.
Followed all the instructions.
plugins/e4-test-1
directory.
Main php file (e4-test-1.php
):
<?php
/**
* Plugin Name: Test 1
* Plugin URI: http://xxxxx.xxx
* Description: xxxxxxxxxxxxxxxxxx
* Version: 1.0.0
* Author: xxxxxxx
* Author URI: http://xxxxxx.xxx
* License: GPL2
*/
My one an only php file with code (testhook.php
):
<?php
function testhook() {
echo 'SOULISSSSSSSSSSSS';
}
add_action( "wp_head", "testhook" );
It simply does nothing. View Source doesnot contain the string anywhere.
Of course I have activated the plugin, cleared caches e.t.c
Obviously my noobness stops me from finding the mistake