The easiest thing would be to use some sort of dependency management. You could use git submodules
(link to SCM page) or for e.g. Composer.
When you are using an autoloader (Composer ships with one) and have a PSR-4 (Fig standard) compliant autoloader (like Composer has), then you can just use \Namespace\SubNamespace
and have everything available.
Related Posts:
- How to use github to update my plugin
- Autoloading & Namespaces in WordPress Plugins & Themes: Can it Work?
- How can a plugin create a page/form in the front end?
- Looking for WordPress System Diagrams
- How to output message during plugin activation
- On the WordPress Admin section how do I link to submenu pages created for a plugin?
- How to provide translations for a WordPress TinyMCE plugin?
- Where do I start from
- Where is it better to start learning how to develop for WordPress?
- How do you create a custom edit.php / edit pages page
- Check the Version of an Enqueue’d External Library
- Is there any way to test if a function running only on plugin update is successfully running?
- Edit the output of wp_widget_rss_output()
- Change of query var in pre_get_posts not maintained
- Hook for post permalink update
- Menu Error in Admin Console with Custom Plugin: You do not have sufficient permissions to access this page
- How to Parse an Array of Elements in Gutenberg Block
- Load page template with custom content using a plugin
- How to put placeholder text in the main post input area?
- Custom rewrite rule serves content, but returns 404 error code
- Will changing the ‘Plugin Name’ header in the next update of a plugin break anything?
- Performance of several get_option() calls
- How to edit mySQL wp_posts table from plugin php?
- Creating a Wordpess Plugin that writes data to a csv file. The data doesn’t show in the csv file?
- Problem with is_active_sidebar?
- Prevent Plugin from loading on ‘wp-admin / wp-login’
- Redirect user to a particular link in 10 seconds after using wp_die
- Widget update function not saving values
- Getting admin notices working for plugin errors
- override pluggable.php functions
- An echo line in a transition_post_status action leads to “cannot modify header information – headers already sent by”
- get_the_excerpt() is not returning an empty string when the_excerpt is blank?
- “Plugin could not be activated because it triggered a fatal error.”
- Storing product price data in the database
- Does the order of sections in readme.txt matter?
- Add column in WP user but it goes wrong
- modify wordpress default search
- How to remove the current post from the query?
- Passing nonce at admin menu link
- Is file_get_contents() the only way for plugins reading local files OR does WP_Filesystem_Direct::get_contents() even work?
- how to get up row in wordpress with wpdb
- Preview plugin store details
- Hook into Jetpacks Publicize without using a post type
- Get attachments from a post
- How to limit number of number of categories displayed by categories widget
- How to load library scripts in admin from plugins in noConflict wrapper?
- rest_no_route on custom API endpoint wordpress
- WP and object persistence (or lack thereof)
- UWooCommerce – add cart discount programmatically?
- Additional classes `undefined` after saving post in Gutenberg
- How do you submit a Gutenberg plugin?
- Bad Request in AJAX
- Remove sidebar on single page using plugin API
- When does save_post hook fire on post save/update
- How to replace default comments with custom HTML?
- Enqueuing scripts and styles in custom plugins
- Include file in plugin file
- WP nonce field checkbox prints checked=’checked’ outside input field
- Shortcode not appearing when used as post content in wp_insert_post() or possibly, shortcode not being registered at all
- Creating two tables in database on activation hook
- Adding custom stylesheet into header.php using a plugin
- Developing the save function in Gutenberg blocks
- Adding Custom CSS with PHP
- How to remove/replace current page template?
- How to receive notification of deprecated API elements and functions?
- Using password protection to load different page elements?
- It is possible to pass $args that sent by add_settings_field() inside another function?
- Change reminder email date to 14 days before
- .htaccess with WordPress – create my own pretty url with parameters (above WordPress settings)
- GitHub plugins safe to use in my website?
- Generating a password-protected front-end page via a plugin
- wp_remote_post not working with admin-post.php
- How can we stop showing short code in create or edit post section
- Adding Amchart Interface to WordPress API
- WordPress Own Rewrite Rules
- Default media uploader is not showing in wordpress website
- Delete Plugin Options with Verify
- Don’t print customizer styles when no setting has been used
- Load custom translation in custom plugin fails
- Buddy Press restrict the capability to edit users
- “Headers Already Sent” Nightmare on Plugin
- add_settings_error on validating plugin options API
- Uncaught ReferenceError: kpoejy is not defined
- How to get an array out of a nav menu if it’s a plugin?
- Is there better way to do this without duplicating queries?
- How to create a simple plugin which show/hide an html code in wordpress?
- Can I access WordPress API’s from within plugin scripts?
- Is there a way to make is_search() always return false
- How to create custom frontend php page via plugin
- Translation of plugin Upload button
- Ajax url value to pass ‘variable’ to use in query
- Apply Filters Causing a 500 Internal Server Error
- Create wordpress dashboard metabox which spans all columns
- add_filter adds output in the head
- How can i add insertion point between inner blocks in my custom block like core blocks
- Update option hook not firing
- How will i add an option under customizer the event calendar section?
- Return custom product in ajax call loop
- Elementor Top-Bar
- Is it possible to add Custom Dashboard Widgets to Custom Admin Menu Page?