Does WordPress have an Browser Agent?

The WordPress user agent is set in the class WP_Http as ‘WordPress/’ . $wp_version . ‘; ‘ . get_bloginfo( ‘url’ ) You can set it to a (secret) fixed value per filter: add_filter( ‘http_headers_useragent’, ‘wpse_59788_user_agent’ ); function wpse_59788_user_agent() { // to remove this filter immediately uncomment the following line // remove_filter( current_filter(), __FUNCTION__ ); return … Read more

Echo simple string in Plugin

A subtle difference between your syntax wp-footershould 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: (Codex) Plugin_API: Action_Reference » the wp_footer hook (Codex) Plugin_API: Action_Reference (Codex) Function_Reference