Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Function which remove Plugin Update Notices – Ajax Search Pro, Elementor Pro, Perfmatters plugins*/
- function disable_plugin_updates( $value ) {
- unset( $value->response['elementor-pro/elementor-pro.php'] );
- unset( $value->response['header-footer-elementor/header-footer-elementor.php'] );
- return $value;
- }
- add_filter( 'site_transient_update_plugins', 'disable_plugin_updates' );
- /**
- * Disable individual theme update notification WordPress
- */
- function disable_theme_update_notification( $value ) {
- if ( isset( $value ) && is_object( $value ) ) {
- unset( $value->response['astra'] );
- }
- return $value;
- }
- add_filter( 'site_transient_update_themes', 'disable_theme_update_notification' );
Advertisement
Add Comment
Please, Sign In to add comment