Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    you could use the filter hook “wp_table_reloaded_url_css_plugin” for this, which gets passed this URL.

    However, can you explain why you would want to do this? I don’t see a reason for this…

    Regards,
    Tobias

    Thread Starter vefali

    (@vefali)

    I am testing my site via google pagespeed. There is some warning. One of them “LeverageProxyCaching”


    wp-content/plugins/wp-table-reloaded/css/plugin.css?ver=1.9.3

    Can you help me how to write filter hook which mentioned?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    I wouldn’t worry too much about this warning. This method with the version string is common practice in WordPress, and it actually serves a purpose: It guarantees that you get the latest version of the file, after the plugin is updated.

    However, if you really want to remove the version, please try adding this to the “functions.php” in your theme:

    function wp_table_reloaded_remove_css_version( $url ) {
      $url = substr( $url, 0, strpos( $url, '.css' ) + 4 );
    }
    add_filter( 'wp_table_reloaded_url_css_plugin', 'wp_table_reloaded_remove_css_version' );
    add_filter( 'wp_table_reloaded_url_css_datatables', 'wp_table_reloaded_remove_css_version' );

    Regards,
    Tobias

    Thread Starter vefali

    (@vefali)

    thank you for helping. it is working.

    My site google pagespeed score 95/100. google adsense and analytics code prevent to get higher score. 🙂

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    nice. Good to hear that this worked.

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Remove version string from css url’ is closed to new replies.