Search
 
SCRIPT & CODE EXAMPLE
 

PHP

update url wordpress

<?php
update_option( 'siteurl', 'http://example.com' );
update_option( 'home', 'http://example.com' );
Comment

change url wordpress

/*
This is the safer way to do it.
Upload this file to your active theme directory. 
Use your own URL instead of example.com, obviously.
Refresh in http://example.com/wp-login.php after adding/updating functions.php
Remove the lines or the remove the file after the site is up and running again.

more information here: https://wordpress.org/support/article/changing-the-site-url/#edit-functions-php
*/


update_option( 'siteurl', 'http://example.com' );
update_option( 'home', 'http://example.com' );
Comment

PREVIOUS NEXT
Code Example
Php :: how to create php message 3 
Php :: custom fields wordpress 
Php :: wordpress get wp roles 
Php :: how to use union and intersection in laravel query 
Php :: file is empty in php 
Php :: disable sidebar widget wordpress 5.8 
Php :: error pdo php Exception 
Php :: laravel collection to array 
Php :: laravel error messages 
Php :: woocommerce my account php code wordpress 
Php :: laravel 8 resource 
Php :: laravel sanctum Provoking tokens 
Php :: laravel simple pagination 
Php :: newline not working php 
Php :: laravel check if environment is production 
Php :: square php 
Php :: referencing constant in config laravel 
Php :: PHP executable not found. Install PHP 7 and add it to your PATH or set the php.executablePath setting 
Php :: get romawi number php 
Php :: laravel migration mediumint length 
Php :: php define variables from array associative 
Php :: laravel select only one word from string 
Php :: check if any values are the same in an array php 
Php :: Skip model accessor laravel8 
Php :: remove cache from page hummingbird 
Php :: order by pre get posts 
Php :: consumir soap php 
Php :: Before Action methoond in Yii 1 controller 
Php :: tinker laravel 8 
Php :: dump all variable in view codeigniter 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =