You could create your own file in wp-content and reference it like so:
$cache = content_url();
$cache .= "/cache/"
That should echo http://mydomain.com/wp-content/cache/
so you can run all your operations off of that, like systematically clear it.
Do the same for downloads if you want them to be distinct.
Related Posts:
- Pass PHP variable to javascript
- Edit plugin without hooks in functions.php
- wordpress get meta value by meta key
- What areas to Unit test while building a plugin?
- How to find out if option exists but is empty?
- Is dynamic forms/entries possible in Widget?
- Trigger a custom wordpress plugin with a linux cron
- update_meta_user difference in i:1 and b:1, how to write b:1
- Registration Form Validation in wordpress
- Errors while using ajax from external wordpress page
- Add_rewrite_rule doesn’t add custom url in plugin
- Dequeue / Deregister script and replace it with a new plugin
- How to add inline css/js inside a shortcode
- Is this plugin being loaded before file.php, subsequently not allowing me to use certain functions?
- Hide Theme options and Customize Admin menu
- Current user in plugin returns NULL
- How can I implement a notification system in wordpress?
- Minimum PHP Required for WordPress
- How do I write into a file (css)
- Building an email signup form. Where should the information be saved in the DB?
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Where should I save an API key of my user when installing my plugin?
- How to make a customize role and view a specific plugins base on that role?
- Custom form action to handle data inside a plugin
- WP Post Template – Templates in own folder
- Allow users of my plugin to define their own shortcode rather than use mine?
- Create entire wordpress as a github repositery?
- CRUD and Frontend show from a custom table without shortcode
- Map Custom Registration Fields to WordPress User Roles
- custom payment gateway in woocommerce failed to connect to remote api server
- Plugin options page with live preview?
- Ajax call returning 0
- How to update post’s content on post publish?
- WordPress plugin admin html being shown in Customizer iframe
- WordPress Widget – Saving multidimensional arrays into $instance
- Ordering taxonomies by rank
- Plugin Options not being output
- Can I create a table on my DB without creating a plugin?
- Submit Form data to another page via Ajax (WordPress Way)
- WordPress checkbox and Illegal string offset
- How to add support for caching plugins for my own plugin?
- add_submenu_page returns null
- get_option / wp_localize_script Not Working in OOP Plug In
- Is there a script to collect all hooks and filters provided by a plugin?
- How WordPress core manage the plugin installation
- Why is my WordPress Plugin page requesting my FTP Login Credentials?
- Cross Sells are not being shown in Cart Page. Please Help!
- Post status doesn’t update to ‘future’ every time?
- Plugin not properly prepared for localization
- adding custom code as a wordpress plugin
- How to add filter for wordpress plugin?
- count the number of views of a post excluding own views
- How To Create A File Archive in WordPress?
- Custom Post Type, Custom Columns List
- How to hide plugin submenu title in drop down in admin panel in wordpress?
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- How to upload large media file in chunks, without any plugin?
- How to set Google Analytics tracking code on WordPress plugin directory page?
- How to add styles to a submenu page?
- How to store a secret for a plugin inside public_html
- Show Custom Post on Frontend
- Problem with checked box on wp car manager plugin
- How to use functions found inside pluggable.php with my plugin files
- Create a link that calls our custom function in WordPress
- Update a previous version of plugin when the new plugin is built from the scratch
- WordPress Ajax request “Failed to load resource: the server responded with a status of 400 ()”
- Load my Inline js footer area
- WordPress Product Detail and catalog
- Remove action added in plugin class from theme
- wc_get_product_terms() throws “Notice: Undefined offset: 0”
- Woocommerce list variations that are added already to cart in Single Product
- Plugin json page
- WordPress Admin sub-level menu issue
- How do I add a textarea (multirow) option to my WordPress plugin?
- PHP header() not available to use in my plugin
- Passing ajax variable to more than one wordpress plugin function
- search into subcategories plugin subcategory value not come
- Why isn’t my plugin seeing other classes?
- How Can the_post Be Hooked Like the_content and the_excerpt?
- How to add jquery to my custom post type wp plugin
- Update post meta not working on wp_postmeta
- How to tell which Plugin is displaying?
- Check if user is in a group of another site within multisite network [closed]
- Redirect url in plugin to somewhere else?
- Get Core Functionality from Within a (Secondary) Plugin File
- wp_insert_post_data filter to set category
- Plugin keeps saying needs to be updated and it’s in a constant loop [closed]
- Site is setup statically – how to make it content managable?
- is there a way I can add or remove some plugin options?
- How to provide access to specific plugin to all the user roles except subscriber in wordpress
- Output pure JSON wordpress
- What can I do to customize a widget provided with this plugin? from where have I to start?
- how to remove a rel=”nofollow” using call to action plugin
- Activate plugin button do nothing [closed]
- Unable to pass arguments from plugin form to filter hook using ajax, the data is transferring via ajax but unable to pass as arguments in filter hooks
- How to update changes to multiple sites at the same time
- Meta box not displaying on the plugin page
- Why am I getting an error when requiring a file in my plugin?
- Running a function using Crown WordPress on one day a week, for example, Mondays of every week
- Allow manage_options capability for specific user only for specific plugin?