protected static function add_constants() { if (!defined('WP_CONTENT_SUBDIR')) { $wp_content_path = str_replace(get_home_url(), '', WP_CONTENT_URL); define('WP_CONTENT_SUBDIR', $wp_content_path); } }