AI Verified

Name

Disable WP Address and Site URL fields in admin

About

Block clients from touching the WP address and Site URL in the admin settings

Language

PHP

Rating

Voted: 0 by 0 user(s)

How to Setup Snippet

Add this code to the wp-config file.

Codevault

elewebdev

Scroll down to see more snippets from this codevault.

Wordpress Compatability

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

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:

13/11/2022

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 WP Address and Site URL fields in admin

 
                    
1define( 'WP_SITEURL', 'https://site.com' );
2define( 'WP_HOME', 'https://site.com' );

0

Related Snippets

Please see some snippets below related to this snippet..

WordPress Admin

AI Verified

0

Rename Posts to News

Added: 1 year ago

Last Updated: 1 year ago

Posts is a rather general terms. Some clients like to rename this to something more specific like "News".

WordPress Admin

AI Verified

0

Disable scroll-to-top when editing snippets

Added: 11 months ago

Last Updated: 11 months ago

When using Code Snippets 3.6.0 or later, use this snippet to prevent the automatic scroll-to-top after clicking 'save' when editing a snippet.

WordPress Admin

AI Verified

5

Really Simple Duplications

Added: 10 months ago

Last Updated: 7 months ago

A snippet to duplicate posts and pages and CPTS.

Other Snippets in this Codevault

These are some popular snippets from this users codevault..

Animation

Unverified

0

CSS Pulse Border Effect

Added: 2 years ago

Last Updated: 2 years ago

Animates css border that pulses.

WordPress Admin

AI Verified

0

Empty WP Trash in 5 days

Added: 2 years ago

Last Updated: 1 year ago

Set the number of days to purge items marked as trash in the database. This will happen every 5 days. You can change the 5 to any number such as 7 days for weekly and 30 days for monthly.

WordPress Admin

AI Verified

0

Disable WP Address and Site URL fields in admin

Added: 2 years ago

Last Updated: 1 year ago

Block clients from touching the WP address and Site URL in the admin settings