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
- How rename wp-content and wp-admin folders correctly
- Enabling pretty permalinks with Docker, Multisite WordPress and Caddy
- Save data of select list after clicking save
- retrieve wordpress post-meta using php not wordpress functions
- Merge / Combine two php functions for Previous and Next Link with Thumbnail
- Migrate php folder to WordPress
- Automatically create a loop for post ID
- WP Knowledge Base Theme bug – Subcategories and Articles, Need to change WP_Query
- How to have Function of a plugin using global vars into a shortcode?
- set new link as permalink
- How to add a code for lastpostdate after/inside a specific menu link?
- Repeatable field within repeatable group of fields
- See output of a sql query while plugin installation in wordpress
- Shortcode Display From WordPress Dashboard Page Without Using post_id
- On selecting shortcode generate selected shortcode table inside page editor worrdpress
- Add php function into .js file (for tinyMCE button)
- Adding theme support for a custom header image
- Dynamic Post Type Variable echo as string?
- Undefined index notice when using the $args parameter in add_settings_field()
- Saving category as insert post
- WordPress plugin creating sidebar on the theme/page
- How do I / Is it possible to execute an external PHP file / function inside WordPress?
- Closed html class after counter = multiple of 3
- List sibling pages widget, exclude current page