I am getting started with plugin development. I wrote the following program to display text on screen but nothing happened. Please help. Thanks.
<?php
/*
Plugin Name: Fahad
Plugin URI:
Description: Declares a plugin that will be visible in the
WordPress admin interface
Version: 1.0
Author: Yannick Lefebvre
Author URI: http://ylefebvre.ca
License: GPLv2
*/
?>
function fahad(){
echo "I am alive";
}
add_filter('wp-footer', fahad);
A subtle difference between your syntax
wp-footer
should bewp_footer
, underscore_
and not hypthen-
Follow the naming convention of functions:
wp_footer
hook