you can use content_url()
it’s located with http://www.example.com/wp-content
wp-content folder.
Or for path
you can use WP_CONTENT_DIR
it’ll located to wp-content
folder.
require_once(WP_CONTENT_DIR. 'uploads/folder/urls.php');
Check more info Documentation
Related Posts:
- Importing modules from parent folder
- Importing modules from parent folder
- How can I safely create a nested directory in Python?
- Count how many files in directory PHP
- Create a folder if it doesn’t already exist
- Redirect after Login on WordPress
- Formidable Forms WordPress Plugin
- Redirect old php link to wordpress link in .htaccess
- Redirect old php link to wordpress link in .htaccess
- WordPress qw.php file on root of installation
- Remove “Protected” text in title h1 of protected wordpress pages
- How to convert JPG to PNG on upload in WordPress (via add_image_size)?
- What is the meaning of ‘OFFSET’ => 1 (WordPress)
- Display only one category on home page wordpress
- WordPress custom thumbnail size
- WordPress custom thumbnail size
- Local WordPress installation is stripping ‘wp-admin’ from URL on WordPress admin dashboard
- Random Question Mark Icons In WordPress Text
- WordPress – add second logo to customizer
- Creating a custom rebrandly link using a wordpress shortcode
- WordPress thumbnail cropping not working
- Flaticons not showing up on WordPress
- What does arg mean in WordPress
- WordPress custom supports for custom post types
- WordPress dFactory Cookie Notice Plugin
- How to enable button onClick functions and java script in wordpress post
- How to use wp_enqueue_style() in my WordPress theme?
- Query multiple WordPress post types alternately
- How can i Toogle between 2 icons without reloading page in wordpress
- About 404 during WordPress installation
- How to extend WordPress Bookly plugin
- “The Events Calendar” plugin by Modern Tribe in WordPress not working
- After moving WordPress, login works, but no admin access anymore
- WordPress Main Menu – Hide ‘Home’ link on homepage only
- Why am I getting 404 not found on this wordpress subdomain on my Nginx server?
- WP_Query(‘orderby=post_date’) not working with wordpress
- WordPress get_terms() function not display custom taxonomy categories for woocommerce
- WordPress Error: There has been a critical error on your website. Please check your site admin email inbox for instructions
- Scalable wordpress setup
- WordPress Password Protected Page is not protected
- Avada theme wordpress customization
- Local wordpress install only shows home page, all other pages Not Found
- How to display WordPress search results?
- WordPress – Display Random Number Between 190-250
- How to set on load marathi language using google translator in wordpress?
- WordPress theme Flatsome 3.11: UX Builder not loading
- After migration of WordPress website I can’t access the admin (white page)
- Double slashes on WordPress Admin URL redirects to wp-login
- WordPress: Login for Users Without access to wp-admin
- I have shifted my wordpress site from one host to another, after shift the website wp-admin is not open
- How to use If, If Else and else in WordPress
- Display Ninja Forms Data in WordPress Template
- Enable “Post Formats” Just For a “Custom Post Type” And Not Others In WordPress
- Get Categories of events in WordPress Events Calendar Pro Plugin
- Embed podcast feed in wordpress
- Passing a field name from CFS wordpress plugin through to twig
- wordpress add_query_arg how to add multiple queries to URL
- Custom Coupon type woocommerce wordpress
- WordPress home page is blank but every other page is working fine
- How can I configure the WordPress development environment locally?
- function “add_submenu_page in wordpress connects to the home page instead of the submenu page
- Add php code inside the function add_shortcode in functions.php WordPress
- Show comments on WordPress home page
- Include WP_Query in my own PHP file?
- Include a external PHP file into a WordPress Custom Template
- Include files in functions.php
- Namespacing WordPress project according to FIG standards
- Does wordpress allow me to add a php file to the root directory to execute custom scripts?
- where to include a php file
- Can I change a variable in a content part while calling it?
- the_author() not working outside the loop
- Change the actual (or viewable) WordPress directory structure
- Put CSS inside a PHP file and include it the right way
- Using a `Template Parts` folder instead of an `Includes` folder in a Custom WordPress Theme
- Correct folder permissions?
- code is skipping a div
- subdirectory index.php is not working
- Accessing an image folder inside public web directory
- Correct and safe way to include php content in my page
- PHP in CSS file?
- php include not working in custom page
- Post’s ID pattern?
- Using WP functions such as the_title() in an included php file
- wp-mail attachment is not sent for no reason?
- How to include custom PHP file both in header and footer files
- New user – Create a folder
- How do I fetch a data from an external database into my wordpress homepage
- How do I fetch a data from an external database into my wordpress homepage
- Resource 404 error on multisite subdirectory install
- How do I / Is it possible to execute an external PHP file / function inside WordPress?
- Permission functions within wordpress
- WP white screen of death after duping a site that works fine on same server
- Correct Syntax for uploading files to custom directory in WordPress
- Shortcode not passing variable to included file
- php “use” not working in template [closed]
- How to include a php file in every post and page [duplicate]
- White Screen When Includding A Folder With PHP Files
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- Should I use include(_once) or require(_once) for loading php-file with customizer settings?
- How to keep the full path with rsync?