You can always use the Composer when making a plugin and require all its dependencies. But as MikenGarrett said, finally you have to bundle all the required vendors into the plugin as a whole package.
There are WordPress repository, containing /vendor/
directory1 and their development environment containing composer.json
file declaring production-dependencies ('require'
)2.
But using Composer you will get a /vendor/
directory and vendor directory is excluded while scraping strings for translation in WordPress plugin repository. Some people suggest changing the name of the /vendor/
directory into something else like /packages/
to scrape their strings too.
Thanks to Pascal Birchler, Tor-Björn Fjellner, Aristeides Stathopoulos for assisting in this matter.
Related Posts:
- Update Option Stored in Multi-Dimensional Array
- check if Gutenberg is currently in use
- WordPress Plugin Development – Headers Already Sent Message
- Get page content using slug
- How to include wp-load.php from any location?
- Correct way to enqueue jquery-ui
- How to echo the_excerpt without the P tag wrapper?
- How can I update a wordpress plugin from a Git repository (github)
- Is There a Plugin Life Cycle Documentation?
- $wpdb->insert_id
- Remove profile picture option (and other things) from profile.php (in admin)
- How to disable plugin update notification for a specific plugin in Multisite
- Getting old term value with edited_{$taxonomy} | Hook
- Adding custom code into header.php using a plugin
- Building a better media uploader for WordPress
- Problems with localization
- Install and load additional plugins when running unit tests
- Calling clean_term_cache() fails when called in the same plugin that creates terms, succeeds when called separately?
- Singular name Plugin localization
- How do I hook a custom discount to change a WC_Order price total on WooCommerce?
- On plugin deactivation hide its shortcode
- Can I submit a plugin that follows the PSR-2 coding style guide?
- How to get current page id through the plugin
- Properly licensing a plugin that uses Apache 2.0 licensed code
- Create a new page in a plugin
- Where should I store global data for my multi-site WordPress plugin?
- Header Button Chance Polylang Elementor
- Print value of an array or variable in a payment plugin
- Find source of notice / warning / errors efficiently
- $wpdb -> Batch insert from XML File?
- Settings not set after calling register_setting()
- preprocess_comment array doesn’t have comment_ID
- Use wp_set_post_terms() instead of wp_insert_post()
- Conditionally Remove a nav menu link if session is active
- $content variable – Is this a reserved variable for a WordPress function? – php / wordpress
- Adding set of custom fields to WordPress Post in Dashboard
- TinyMCE 4.7.11 custom styles using styleselect – what does the ‘attributes’ argument do?
- Modifying meta tags after doing ajax call in plugin
- Modifying the default WordPress .htaccess with a plugin
- How to schedule a cron job in plugin without waiting for page load request?
- Create a free scripts and styles template within a plugin
- Is there a way to list all actions registered by a plugin or theme?
- WordPress Plugin with a shortcode that dynamically generates javascript. Can I use add_action without wrapping the javascript in a function?
- Call wp_generate_password() from within a Class
- Elementor custom Query with ACF fields to show matching woocommerce products custom fields
- How to enqueue style in WordPress plugin from theme files?
- Set different custom menu items for different user roles
- Getting List of all registered Dashboard Widgets
- Why does wp_remote_post returns an empty body response on certain endpoints?
- Bootstrap version conflict 3 with 4 for wordpress theme and plugin [closed]
- Where to write custom logs in WordPress
- How developed with version control word press site on shared host? [closed]
- pre_get_post alter current post id
- 3rd Party Plugin dependency – how to correctly load classes
- Problems with cron
- add_settings_field Data not passing to Options Page Like it should
- How do I add a favicon that only shows during viewing of my plugin’s admin panel?
- Can’t get CSS Into the Head via add_action
- Correct syntax for database inserts from plugin?
- Remove Default Blogroll Links via Plugin script
- Empty Pdf file generated with FPDF library in WordPress plugin [closed]
- $wpdb->update() always need a second try
- Filter posts in pre_get_posts order by meta value date (desc or asc)
- How to display the category id along with category name on categories list?
- Why aren’t some plugin styles loading when I load a template?
- Activate / Deactivate plugin
- My plugin won’t create table in wordpress 3.5
- Remove Permalink Meta Box not working?
- WordPress actions for plugin admin UI page
- Pause plugin option page until all data manipulation is complete
- Serial Number from custom table not appear in woocommerce_email_before_order_table action
- Modify custom block plugin without losing content
- How to replace the existing metatag using the backend to insure a thumbnail image gets fetched when we share on social media?
- When setting styles to an extended block that was saved as a pattern, it doesn’t remove the style that was there
- apply_filters() and call_user_func() to define and call a function outside a class
- HTML Elements in my WP Plugin being generated in JS. Security and Translated Text Question about this method being used
- Sanitization and validation input fields – Settings API
- Author Meta in Author URL Link
- Warning: Illegal string offset ‘Andorra’ in … on line 106
- Different style for specific rows in custom list table using WP_List_Table
- wordpress4.8.2 Multilingual Plugin
- get_comment_meta() for a filter hook in a plugin
- form does not generate $_POST request
- Callback function quicktags that uses variable in start tag
- Font Awesome stopped showing icons, shows &# text instead [closed]
- WordPress Plugin Tool Tip Helpers
- How can I add the Post ID to Class Name in Jquery?
- How to show metabox just in post.php in admin?
- $wpdb how can i save my postmeta table before querying it
- Create dedicated page with custom template showing custom data
- How can I see a varibles value when my plugin runs?
- Can’t switch theme after activation
- plugin will not offer update even though a new version is available
- WordPress plugin: admin-ajax.php not passing data to custom function
- How do I replace title with my plugin?
- Create pages for authors
- Enqueue Script in custom plugin before other
- How to remove a class [closed]
- How can I dynamically change title and description in WordPress?
- Display months on a drop down calendar as TEXT instead of Numbers