I am having a hard time understanding exactly what the problem is but two things come to mind.
locate_template
searches theme directories. It is not
a general purpose file loader. I don’t know if that is relevant to
your case. There is not enough detail in the question to work that
out. Given that you have not mentioned themes at all and are only talking about “external scripts” and plugins, I suspect that this is the problem.- You may be having scope issues with the includes.
Related Posts:
- How do I replace a function, declared inside a plugin’s class, in functions.php?
- is_plugin_active() returning false on active plugin
- Unable to check if plugin is active
- How to include a plugin’s php file to another plugin functions file [duplicate]
- Change the path where wordpress plugins are uploaded
- Problem requiring/including plugin files with plugin_dir_path( __FILE__ )
- Which method is best to enqueue scripts
- How to call plugin path in JS?
- Absolute Path (ABSPATH) in WordPress is not working
- Save and retrieve custom plugin options value
- Why does including a file in theme’s functions.php not work?
- Include files for a plugin not including
- Adding rich text editor to my plugin
- Migrating a File from Plugin to Theme and changing its path → instead create a REST endpoint
- I need to add a custom “cover” to every new post — plugin or custom setup?
- Get uploaded image url
- Is it ok to call get_option without hooks?
- Settings API – input always updates over validation
- WP Paths in a Plugin – how to include
- plugins_url function mixes system path and URL
- Serialize data for wp options
- Creating plugin using simple_html_dom parser?
- Added slug after URL permalink last slash returns different content
- Add Plugin options as subpage to Theme options page
- Retrieving a path when dealing with composer packages
- Use of Templates in a Plugin
- Include comments form in plugin page
- Create tabs in admin options page from custom post type loop
- WP Plugins – Use includes to display page content
- Using arbitrary paths in page urls
- Plugin Options not being output
- Gathering and logging data from a plugin: how to do it without race conditions?
- How to get path or root of plugin folder, not file or dir?
- Slashes stripped in ACF
- Use $variable from file1.php in file2.php (different file paths)
- How to automatically redirect to custom admin menu after plugin activation?
- Correct Plugin File Path
- Hardcoded paths in my plugin
- CMB2 – array_search or in_array from repeat_group and comma separated values
- Trying to include files in plugin isn’t working
- Absolute paths in backend for plugins after moving wordpress
- Using plugin_dir_path() with WordPress on MAMP
- Replace image urls(absolute instead of relative) by using filter in single page
- wp_options not returning value for logged out users?
- Displaying page content from plugin, inside exising empty WP page
- how to show new field if option selected?
- FPDF for creating pdf diplomas
- Include my files in a plugin? [duplicate]
- Failed GET Request From admin.php To Fetch .min.js File From Unminifed Directory
- path of wp-content directory when we are on some plugin
- How to store multiple instances of the plugin’s options for various shortcodes
- Get not the full path
- Unexpected plugin_dir_path Output
- How to write wordpress plugins faster to load?
- Plugin options not appearing on options page using tabbed navigation
- How to tell if a script is being executed from a plugin, a theme or a child theme in WordPress?
- Server Path Information
- show Visual form builder in the front end
- Including a PHP file via a function that is part of a plugin?
- Register additional wp plugin directory
- Shortcode return is printing a 1 afterward
- White Screen When Includding A Folder With PHP Files
- php include returns 1 as output with other outputs [closed]
- WP-DBManager Plugin Can’t Find Mysql Path
- Display file contents within Plugin
- How to display the featured post on the category page?
- Disable globally “Crop thumbnail to exact dimensions (normally thumbnails are proportional)” with Multisite
- How to find the list of custom post type where logged in user is author
- UTF-32be error WordPress
- Loop in elementor custom widget not working
- Change text string in a plugin
- Set Multiple Meta Values as an Array Using dispatch( ‘core/editor’ ).editPost() Call in Gutenberg/JS
- wp-admin send 404 error
- How to create plugin/ page that reads from database
- Stop wordpress from requesting external jquery from googleapi
- Can the benefits of performance optimization plugins outweigh the tax of installing them on performance?
- get_users(); Is an Undefined Function When Used in Cron Job
- Alternate email sending service – eg: AWS SES [closed]
- 5 PHP Fatal error: Uncaught ArgumentCountError (Cannot Find)
- Disabling a plugin lead to styles being shown as plain text
- the_content() printing DOCTYPE, and tags in the middle of page
- How to deal with Slow HTTP POST (slowloris) vulnerability
- How to create author profile showcase in wordpress
- What is the purpose of WP_CONTENT_URL?
- Blog previews on custom page with more buttons
- Order posts by meta key ( Using ACF )
- Control page content visibility based on URL parameter
- Where does MonsterInsights put Google Analytics code?
- WooCommerce Shopping Cart Not Initially Showing Products [closed]
- Elementor Custom Control: How to get input value?
- Elementor page builder plugin not loading up all the way? [closed]
- How to add fields in the WordPress editor?
- How can I fetch data from another website to my wordpress website with mysql database
- Sucuri SiteCheck failing on domain with iThemes Security Pro plugin
- How to translate WP Blog (search, category etc.)?
- WordPress SVN UTF-8 issue
- How can I concatenate variables to search results title? [closed]
- Migrating WordPress – New domain entry, links broken
- Search Results Page filter by page title
- Activate and deactivate plugin automatically