Don’t do what seems to be possible…
You can use the possibility to change the WordPress constants WP_CONTENT_DIR
and WP_CONTENT_URL
in your wp-config.php
.
BUT it really, really, really, really is not recommended.
Why? not recommended??
It’s pretty easy: Just do a cross file search (with your IDE or for e.g. Notepad++) for wp-content
and you’ll find it hardcoded it many places. Some of the stuff will still work, but some wont. Yeah, I’ve already tried that.
Related Posts:
- How to add API security keys into JS of wordpress securely
- esc_attr() right way and use
- Enforcing password complexity
- Does My Child-Theme Functions.php Need if{die} Security In It? [duplicate]
- Upgrading PHP version results in “Use of undefined constant WP_CONTENT_DIR” warning?
- How Attackers write script into my php files?
- How To Make Connection To WordPress Data Base In A Plugin?
- How do I create a WP user outside of WordPress and auto login?
- Security – Ajax and Nonce use [closed]
- Fix 403 error on WordPress multisite network using subdomains
- Can I write ‘RewriteCond’ using ‘functions.php’?
- Make WordPress upload directory outside wordpress root with custom url
- Is it unsafe to put php in the /wp-content/uploads directory?
- Notice: Constant already defined in wp-config.php on (non-existent) line?
- Sanitize get_query_var() url parameters
- No wp-config.php file on local install of wordpress – site still displays
- How can I change WordPress domain from remote to localhost?
- Why am I getting ERR_NAME_NOT_RESOLVED when I add a site to my multisite installation? [closed]
- integrating external php library into wordpress- the right way
- When must I use and verify nonce?
- Hiding WordPress Plugin Source Code
- Is this code malidcous
- Force SSL using FORCE_SSL_ADMIN
- Admin username and password
- How can I resolve the php notice “Constant EMPTY_TRASH_DAYS already defined”
- Evaluations of two wordpress security plans against php code injection attack
- WordPress custom login form using Ajax
- Detect session/cookie variable in wordpress to prevent access to documents
- Is there any risk setting WordPress file permissions and FS method to ‘direct’ on localhost?
- SQL Injection blocked by firewall
- How to prevent XSS alter custom global javascript object & methods in WordPress
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- Is it possible to increase php memory without directives in wp-config.php, .htaccess or php.ini?
- Cannot execute php files in wp-content
- How do I get around “Sorry, this file type is not permitted for security reasons”?
- Security: blocking direct access of php files
- Correct and safe way to include php content in my page
- Password minimum length in personal subscription [closed]
- Is it best to avoid using $wpdb for security issues?
- Hardening uploads folder in IIS breaks images
- Moving wordpress site from localhost to live server using GoDaddy cPanel
- What is the difference in the WP memory limits?
- Troll the hackers by redirecting them
- Security updates to 3.3.2
- how to prevent wordpress admin from logging in via woocommerce my-account page
- malware undetectable by multiple scans
- Set site title & tagline with wp.config or function.php
- Decoded malware code [closed]
- Updating From Mobile App – Exposing Site to Hacking
- How to decrease the max file upload size without using php.ini or htaccess?
- security concerns if using html data-* attribute for l10n?
- How to correctly escape an echo
- Reject all malicious URL requests functions.php
- portfolio site – about this site section – is it safe to post some code
- echo cutom css code to WordPress page template file ? is this safe?
- How can I redefine WordPress wp-content directory programmatically?
- Site cannot access external connection
- How to secure my php forms
- $.ajax results in 403 forbidden
- Site infected by link
- Access WP files on “server 1”, from “server 2” – using wp-load on an external website
- Deny php execution in /wp-includes – using .htaccess in /wp-includes VS root folder
- Serve cookie free URLs in WordPress without using a CDN
- Local WordPress from Git repo, where to set document root?
- I changed the password for the database user of my website, updated wp-config.php and wordpress asks to be reinstalled
- Retrieve $_POST data to send to javascript without using localize script
- Previewing/Updating some Pages causes “The requested URL was rejected” Error
- Resource 404 error on multisite subdirectory install
- What is the best practice for restricting a section to logged in users?
- How to quickly/easily make an analysis (reverse engineering) of WordPress?
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- WordPress White Screen Error
- Difference between php memory limit and wp memory limit?
- Detecting charcater encoding for wp-config.php file
- Changing WP_MEMORY_LIMIT doesn’t affect actual memory limit
- what to do after instlling cyberpanel on VPS
- Custom plugin: Trying to show saved data on frontend
- How can I use a modal window to display the current post in loops featured image?
- How to query for pages/post depending on slug?
- How do you add customer capability after Woocommerce purchase?
- Only echo item in foreach with highest value [closed]
- How to put a variable in a instance in the widget
- Is there an error in my code?
- Show categories then when clicked on a category list all sub category and when clicked show all posts in that sub category
- How can I edit the content in index.php? [duplicate]
- How to remove the h6 tag for the entry-category Class
- Processing ajax call to php to insert into mysql database
- How to add 3 weeks to the_time() function
- wp nav menu: show submenu below li item
- Show different size featured images (the_post_thumbnail) for 1st, 2nd and 3rd posts?
- Using some Loop or repeatable fucntion in AJAX and PHP to reduce repeatability
- Woocommerce disable order item link (backend) [closed]
- get_results() doesn’t fetch the result
- Meta query not showing result properly
- How do I generate formatted permalinks as specified in backend options?
- Upload images from one server to an other in wordpress
- List all blogs apart from the current blog and main blog in WordPress Multisite
- Issue in url update when using wordpress update query
- How to use Amazon Elastic Transcoder from WordPress using AWS SDK for PHP?
- Show items by user_role