AI Verified

Name

Disable automatic scroll-to-notices when adding snippets

About

By default, Code Snippets will scroll the page up so that new notices are visible when editing or adding snippets. This snippet disables that functionality for those who prefer a more consistent editing experience. Requires Code Snippets 3.6.0 or later.

Language

PHP

Rating

Voted: 1 by 1 user(s)

Codevault

shea

Scroll down to see more snippets from this codevault.

Wordpress Compatability

The author has indicated that this snippet is compatable up to wordpress version: 6.1

Our AI bot has checked this snippet is compatable up to wordpress version: 6.1

Code Snippet Plugin Sync

Free & Pro

Download this snippet by clicking the download button, then head over to the Code Snippet Plugin settings in your wordpress admin dashboard, select the import menu then upload this file to import into your wordpress site.

Pro Only (Coming Soon)

You will be able to click a button and sync this snippet to your wordpress site automatically and from your dashboard manage all code snippets across all your wordpress sites that have the Code Snippets Pro plugin installed.

History

Last modified:

14/11/2023

Important Note

This snippet has the following status:

AI Verified

This snippet has been tested by our AI bot, see any comments below.

AI Bot Comments:

Found 0 vulnerabilities

Disable automatic scroll-to-notices when adding snippets

 
                    
1add_filter( 'code_snippets/scroll_to_notices', '__return_false' );

1

Related Snippets

Please see some snippets below related to this snippet..

WordPress Admin

AI Verified

1

Add custom fields to user profile

Added: 1 year ago

Last Updated: 1 year ago

This is a simple and very flexible code snippet for adding custom fields to a user profile. Saves a bulky extra plugin!

WordPress Admin

AI Verified

0

CLOUD Meister: Hide PlugIns

Added: 1 year ago

Last Updated: 1 year ago

WordPress Admin

AI Verified

0

Display snippet line numbers

Added: 1 year ago

Last Updated: 1 year ago

Based on work by platypus424 and germankiwi, this snippet will allow you to see code on a particular line number from all of your snippets, allowing you to track down exactly where an error might be o...

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

WordPress Admin

AI Verified

21

Change admin footer text

Added: 1 year ago

Last Updated: 2 weeks ago

Customises the footer text in the WordPress dashboard.

General

AI Verified

2

Make upload filenames lowercase

Added: 1 year ago

Last Updated: 6 hours ago

Ensures that the filenames of all uploaded files are converted to lowercase, for consistency.

WordPress Admin

AI Verified

1

Disable automatic scroll-to-notices when adding snippets

Added: 7 months ago

Last Updated: 7 months ago

By default, Code Snippets will scroll the page up so that new notices are visible when editing or adding snippets. This snippet disables that functionality for those who prefer a more consistent editi...