Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wp override home url with php

// add these 2 lines to your wp-config.php, 
// exactly before requiring wp-settings.php
define( 'WP_HOME', 'http://localhost/site' );
define( 'WP_SITEURL', 'http://localhost/site' );
// NOTE: you'r overriting the homeurl locally, without changing the value in DB.
Comment

PREVIOUS NEXT
Code Example
Php :: customer io send_at api 
Php :: laravel gigapay create employee 
Php :: wordpress embed shortcode in php 
Php :: get youtube thumbnail php 
Php :: php iterate array 
Php :: laravel abort_if 
Php :: img src php wordpress 
Php :: InvalidArgumentException Unknown format "sentence" 
Php :: php get ip by domain 
Php :: psicopata narcisista 
Php :: ajax update method in php pdo 
Php :: laravel session put method 
Php :: create array from string with commas php 
Php :: wordpress wpdb 
Php :: laravel optional route parameter in middle of url 
Php :: kill laravel server 
Php :: remove special character in php 
Php :: get_boundary_post wordpress 
Php :: laravel make model and migration 
Php :: laravel when 
Php :: codeigniter where_not_in 
Php :: php inline if 
Php :: exclude methods in resource route laravel 
Php :: if button is clicked php 
Php :: empty table in laravel 
Php :: php translate url wpml 
Php :: laravel clear cache 
Php :: how to document php api with swagger 
Php :: php remove specific element from array 
Php :: php date to seconds 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =