Home › Forums › Feature Requests › Disable Update Notifications
Would be great if there was an option to remove the update notifications in ACF Pro when embedding within a theme.
Can’t really complain though because Pro is already a beast!
Cheers
here’s what i’m using just now rhcarlosweb
function my_filter_plugin_updates( $value ) {
unset( $value->response['/inc/options/fields/acf.php'] );
return $value;
}
add_filter( 'site_transient_update_plugins', 'my_filter_plugin_updates' );
No worries, forgot to say, just add more lines underneath if you have several plugins to suppress
unset( $value->response['/inc/options/another-plugin/another-plugin.php'] );
Check this thread on Stackoverflow where I got that code, there’s a few other suggestions
i don’t know what i doing wrong
my plugin in theme is on path functions/metas/acf.php
so, i try
unset( $value->response[‘/functions/metas/acf.php’] );
unset( $value->response[get_template_directory().’/functions/metas/acf.php’] );
unset( $value->response[get_bloginfo(‘template_directory’). ‘/functions/metas/acf.php’] );
and nothing works =\ keep Plugins (1) =(
put the function inside the acf.php file, at the top, like this:
function acf_remove_update_notification( $value ) {
unset( $value->response['acf.php'] );
return $value;
}
add_filter( 'site_transient_update_plugins', 'acf_remove_update_notification' );
this way you don’t have to worry about paths
i decided comment line 39 in acf-pro.php file
// connect (update)
// acf_include('pro/admin/connect.php');
The topic ‘Disable Update Notifications’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Weโre hard at work on ACF 6.1, and Beta 1 is now available ๐
— Advanced Custom Fields (@wp_acf) March 16, 2023
This release includes custom post type and taxonomy registration, an improved experience when selecting field types, PHP 8.1 and 8.2 compatibility, and more!
Letโs take a look ๐งตhttps://t.co/Y0WcAT11l4
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.