| CARVIEW |
Select Language
HTTP/2 301
date: Tue, 30 Dec 2025 12:13:35 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_has_admin_notices/
server: cloudflare
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: MISS
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=d1DUYW06QKAP0bdyxD4xnzkROdZyOQusBvWr88hiYV6VVhIf5izq9X5Ffr%2F5ausQ7WTAP%2Bb5HMHn%2BQQJONn%2BzJysb7H01O1Y4UnraTyuwH4acHB%2F"}]}
cf-ray: 9b6173b2acfea9c3-BLR
HTTP/2 200
date: Tue, 30 Dec 2025 12:13:36 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=%2Bg%2BjqYBymeoNjHRPdwjgvXEqOGwlhSOSMOxCxhOq%2BsLVaDLD9JYDkEota15QAe25wS3IqviiNjSLbT%2B%2BTNUSb5fxPRUAgSib%2BKdrx2LcUyo7RSUF"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b6173b93a34a9c3-BLR
gform_has_admin_notices - Gravity Forms Documentation
gform_has_admin_notices
Description
The gform_has_admin_notices filter is used to determine whether or not to display the “WordPress has new notifications.” notice at the top of Gravity Forms admin pages.
Usage
The filter which runs on Gravity Forms admin pages would be used like so:
add_filter( 'gform_has_admin_notices', 'your_function_name' );
Parameters
-
$has_notices bool
Defaults to false; there are no notifications to display.
Examples
Enable the notice
add_filter( 'gform_has_admin_notices', '__return_true' );
Disable the notice
add_filter( 'gform_has_admin_notices', '__return_false' );
Placement
This code should be placed in the functions.php file of your active theme or a custom functions plugin.
Since
This filter was added in Gravity Forms v2.5.
Source Code
This filter is located in GCommon::notices_section() in common.php.