• Hello. I want to hide the update notification translation plugin. But I do not know how !?

    I use the following filters and put in the plugin file. But it does not work.
    Notifications are displayed again.

    add_filter( ‘update_translation’, ‘__return_false’ );
    or
    add_filter( ‘auto_update_translation’, ‘__return_false’ );

    My plugin is Elementor. I do not want to receive Persian translations.

    https://ibb.co/QrGT11f

    Can someone write a filter for me to hide the translation notifications for the Elementor plugin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • if you don’t want WordPress to show update notifications for akismet
    use this filter
    function filter_plugin_updates( $value ) {
    unset( $value->response[‘akismet/akismet.php’] );
    return $value;
    }
    add_filter( ‘site_transient_update_plugins’, ‘filter_plugin_updates’ );

    Thread Starter themefour

    (@themefour)

    @magentomaster

    I changed and I used this:

    function filter_plugin_updates( $value ) {
    unset( $value->response[‘elementor/elementor.php’] );
    return $value;
    }
    add_filter( ‘site_transient_update_plugins’, ‘filter_plugin_updates’ );

    but not work!
    And this error is recorded:

    Use of undefined constant ‘filter_plugin_updates’ – assumed ‘‘filter_plugin_updates’’ (this will throw an Error in a future version of PHP)

    Use of undefined constant ‘site_transient_update_plugins’ – assumed ‘‘site_transient_update_plugins’’ (this will throw an Error in a future version of PHP)

    My PHP Version: 7.3

    • This reply was modified 5 years, 4 months ago by themefour.
    • This reply was modified 5 years, 4 months ago by themefour.

    Make sure ‘site_transient_update_plugins’ and ‘filter_plugin_updates’ are surrounded by normal quotes. This website is changing the quotes into curly unicode quotes.

    • This reply was modified 5 years, 1 month ago by wpoverwatch.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter Disable update not work!’ is closed to new replies.