Wordpress WP_ Settings


/ Published in: PHP
Save to your folder(s)

This snippet is used to set some wordpress directories / paths directly to the server name.


Copy this code and paste it in your HTML
  1. define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/wordpress');
  2. define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']);
  3. define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content');
  4. define('WP_CONTENT_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/wp-content');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.