A subtle difference between your syntax wp-footer
should be wp_footer
, underscore _
and not hypthen -
add_filter('wp-footer', fahad); // wrong...
add_filter('wp_footer', 'fahad'); // right..
Follow the naming convention of functions:
A subtle difference between your syntax wp-footer
should be wp_footer
, underscore _
and not hypthen -
add_filter('wp-footer', fahad); // wrong...
add_filter('wp_footer', 'fahad'); // right..
Follow the naming convention of functions: