Title: remove hacks from plugin
Last modified: August 30, 2016

---

# remove hacks from plugin

 *  [Flector](https://wordpress.org/support/users/flector/)
 * (@flector)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/remove-hacks-from-plugin/)
 * please remove hacks:
 *     ```
       add_filter('the_generator','disable_version');
       remove_action( 'wp_head', 'feed_links_extra', 3 ); // Display the links to the extra feeds such as category feeds
       remove_action( 'wp_head', 'feed_links', 2 ); // Display the links to the general feeds: Post and Comment Feed
       remove_action( 'wp_head', 'rsd_link' ); // Display the link to the Really Simple Discovery service endpoint, EditURI link
       remove_action( 'wp_head', 'wlwmanifest_link' ); // Display the link to the Windows Live Writer manifest file.
       remove_action( 'wp_head', 'index_rel_link' ); // index link
       remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // prev link
       remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); // start link
       remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 ); // Display relational links for the posts adjacent to the current post.
       remove_action( 'wp_head', 'wp_generator' ); // Display the XHTML generator that is generated on the wp_head hook, WP version
       ```
   
 * and other from pluginю
 * [https://wordpress.org/plugins/wp-fontallic-easypromoweb/](https://wordpress.org/plugins/wp-fontallic-easypromoweb/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Dan Ichim](https://wordpress.org/support/users/daneasypromoweb/)
 * (@daneasypromoweb)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/remove-hacks-from-plugin/#post-6408371)
 * What hacks?
 *  Thread Starter [Flector](https://wordpress.org/support/users/flector/)
 * (@flector)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/remove-hacks-from-plugin/#post-6408372)
 *     ```
       // remove wp version param from any enqueued scripts
       function vc_remove_wp_ver_css_js( $src ) {
           if ( strpos( $src, 'ver=' ) )
               $src = remove_query_arg( 'ver', $src );
           return $src;
       }
       function vc_remove_wp_rev_css_js( $src ) {
           if ( strpos( $src, 'rev=' ) )
               $src = remove_query_arg( 'rev', $src );
           return $src;
       }
       add_filter( 'style_loader_src', 'vc_remove_wp_ver_css_js', 9999 );
       add_filter( 'script_loader_src', 'vc_remove_wp_ver_css_js', 9999 );
       add_filter( 'style_loader_src', 'vc_remove_wp_rev_css_js', 9999 );
       add_filter( 'script_loader_src', 'vc_remove_wp_rev_css_js', 9999 );
       // hide the meta tag generator from head and rss
       function disable_version() {
          return '';
       }
       add_filter('the_generator','disable_version');
       remove_action( 'wp_head', 'feed_links_extra', 3 ); // Display the links to the extra feeds such as category feeds
       remove_action( 'wp_head', 'feed_links', 2 ); // Display the links to the general feeds: Post and Comment Feed
       remove_action( 'wp_head', 'rsd_link' ); // Display the link to the Really Simple Discovery service endpoint, EditURI link
       remove_action( 'wp_head', 'wlwmanifest_link' ); // Display the link to the Windows Live Writer manifest file.
       remove_action( 'wp_head', 'index_rel_link' ); // index link
       remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); // prev link
       remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); // start link
       remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 ); // Display relational links for the posts adjacent to the current post.
       remove_action( 'wp_head', 'wp_generator' ); // Display the XHTML generator that is generated on the wp_head hook, WP version
       ```
   
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [10 years, 9 months ago](https://wordpress.org/support/topic/remove-hacks-from-plugin/#post-6408373)
 * I’ve not looked at the plugin source yet, but how are those hacks?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘remove hacks from plugin’ is closed to new replies.

 * ![](https://ps.w.org/wp-fontallic-easypromoweb/assets/icon-128x128.jpg?rev=994739)
 * [WP Fontallic Easypromoweb](https://wordpress.org/plugins/wp-fontallic-easypromoweb/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fontallic-easypromoweb/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fontallic-easypromoweb/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fontallic-easypromoweb/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fontallic-easypromoweb/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fontallic-easypromoweb/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/remove-hacks-from-plugin/#post-6408373)
 * Status: not a support question