Aleš Sýkora wrote

Speeding up WordPress & Toolset

7. 11. 2019 in

Hello, I have some speeding up tips for your WordPress & Toolset website. Currently I found that GeneratePress Premium + Toolset + WP Rocket do a really great job.

I can easy go to 0.5sec on 1st load of page on shared webhosting running two WP sites with 1200 posts. It will be even better when the old site will be changed with new currently developed version.

  1. Disable Pagination scripts + CSS (if you do not use pagination) – BE CAREFUL 😉
  2. Remove loading of dashicons in frontend
  3. Remove WordPress RSD link
  4. Remove WordPress Shortlink
  5. Disable XML-RPC
  6. Disable generating of WP version in head
  7. Disable WLW manifest (static file, no speed up)
  8. Disable Pingbacks

Put these into custom code snippet in Toolset settings (do not create a garbage in functions.php):

// Disable Pagination script
function cleanup_scripts() {
    if ( !is_admin() ) {
        wp_dequeue_script( 'wpv-pagination' );
add_action( 'wp_print_scripts', 'cleanup_scripts', 100 );

// Disable Pagination CSS
function cleanup_styles() {
    if ( !is_admin() ) {
        wp_dequeue_style( 'views-pagination-style' );
add_action( 'wp_print_styles', 'cleanup_styles', 100 );

// Remove dashicons in frontend for unauthenticated users
add_action( 'wp_enqueue_scripts', 'bs_dequeue_dashicons' );
function bs_dequeue_dashicons() {
    if ( ! is_user_logged_in() ) {
        wp_deregister_style( 'dashicons' );

// Remove RSD link
remove_action( 'wp_head', 'rsd_link' ) ;

//Remove WordPress shortlink
remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0);

// Remove XMLRPC
add_filter('xmlrpc_enabled', '__return_false');

// Hide WP version from head
remove_action( 'wp_head', 'wp_generator' ) ;

// Remove WLW manifest
remove_action( 'wp_head', 'wlwmanifest_link' ) ;

// Disable pingbacks
add_action( 'pre_ping', 'disable_pingback' );

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

More from category
Aleš Sýkora wrote
Display all WooCommerce categories and their products inside
11. 2. 2021 in
If you need to display all your WooCommerce categories in the list and their products inside, you can use mine code. For example you need to create one page layout for food felivery. Use my second tutorial, if you like to display all subcategories and its products on parent category archive. Page = Food Delivery […]
Read More
Aleš Sýkora wrote
Category Specific Conditional IF
31. 12. 2019 in
If you need to use conditional IF to display posts for some specific category, here is example conditional how to do that: If you want to display posts not in category, then use ! as negotiation: Credits: Bryan Candy, Toolset User Group on facebook.
Read More
magnifiercross linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram