See Add multiple plugin directories for one way to do this.
In an earlier project I did something similar, but I used a dedicated theme options page for my theme plugins.
Looking back … I wouldn’t do that again. Plugin updates are a too complicated, separated version control setups too. The client wasn’t always sure where to look at when we were talking about plugins.
And sooner or later you may want to re-use a plugin from theme 1 for theme 2 – you end up copying files back and forth … far from ideal.
You can bundle multiple (single file) plugins in one directory inside the regular plugin directory. In your theme you can use is_plugin_active()
to check your requirements.
TL;DR: Keep plugins and theme separate. You don’t save any work by mixing both.
Related Posts:
- Shared functionality in plugins and themes
- How to enable edit button in the theme’s customize UI?
- Themes VS Plugins [duplicate]
- Recommendations for books/resource to get started with wordpress 3 development (plugins/themes) [closed]
- ‘Customize’ button in admin bar for CSS
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- Custom wordpress Theme and Plugin repository
- “No Add Button” for me to customize my WordPress with themes and pluggins
- Basic gallery plugin suggestion [closed]
- Moving FB comments at the end of page
- How to handle a WordPress blog with articles in different languages?
- display unique post per category
- Display WordPress comments before the plugins?
- Mobilepress fails to translate short codes
- How to prevent plugin, theme installation failures on WordPress?
- How Can I Increase Breadcrumb Position Count (Starting From 2)?
- How can I save cookies to members
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- Need Help Creating a Multi-Step, Video-Guided Enrollment Site
- Issues with Post 2 Post Plugin
- How can I modify the colors of my theme for a single section of my site? [closed]
- do_shortcodes() isn’t working
- Delete tables from database when deleting plugin
- Using Vagrant for customizable WordPress Multi-sites [closed]
- Creating button next to “add media” that allows you to choose a single post
- WooCommerce create new product and add to cart on form submit
- Extending WC_Cart in woocommerce
- How do I make my wordpress page more friendly for mobile viewers?
- WordPress Plugin as ‘Library’ From Abstract Application?
- Add custom meta box on Post page
- Why is this custom taxonomy showing in the database?
- WordPress Plugin development Call to undefined function jQuery()
- Conditional Display of Links in Widgets
- Created Widget Not Showing up on Admin Panel
- I need to add a custom “cover” to every new post — plugin or custom setup?
- Uncaught Error: Call to undefined function get_user_by() after moving function from theme to plugin
- How to Implement “Notice: This theme recommands the following plugin:xyz” in wordpress? [closed]
- Change settings of get_post_type_object
- Check if User exists in WordPress Multisite
- Custom plugins/Manipulated plugins: Always a terrible idea to inherit these types of WP sites that discourage updates? [closed]
- wordpress.org codebase
- Can a plugin deactivate and delete itself once installed and activated?
- How to modify shortcode attributes with data from current post
- How to import my YouTube channel into WordPress?
- My Category is too big on the Menu what can i do?
- plugin style conflicts, how to override? [closed]
- Removing customise fields during plugin uninstallation
- How to Create a Custom Panel and Fields in Post Page [Plugin]
- How to fetch products with the price in a page on woocommerce using a form or live search with php
- There is any way to remove post-format filter? [closed]
- WordPress site periodically goes down
- Masonry images not working
- Best place for short bio,image and button [closed]
- How to require users to login when not logged in
- Error when using plugin QuickCache with plugin Mobile Smart ? [closed]
- URL rewrite of independent plugin?
- Plugin for users to create their own ads like Google Adsence
- How do I apply style to each category of a list?
- How do I find out what is in control over a certain part of a website?
- How do I combine a theme with a plugin
- Custom widget doesn’t save values from dropdown box
- Use different single.php file based on condition
- Change the style of h1, h2, only in post entry
- Custom API plugin to execute 3rd party API to retrieve data
- issue in wp_localize_script
- Customize Menu | Styling LESS/SCSS code formats
- shortcode – multiple instances of same parameter name in one shortcode instance
- How to create a plugin that includes all the other plugins?
- How to remove products-links after the product title using remove_action
- Why is it important to check for isset and is_array before checking in_array in this example?
- How I update WordPress theme and plugins
- Don’t load the theme for a page FROM a plugin EDITED
- is there a way to pass a parameter to a add_menu_page function?
- Integrating Custom Database with WordPress
- How can I replace content on site generated from plugin without changing plugin
- admin-ajax.php 500 error when new users try to register
- how to display a template.php in a shortcode
- How to fix blog article view and share #’s?
- How to send custom mail when a user complete a specific form
- When the user entered an unauthorized url redirect to login page
- Echo custom admin field into a is_single()
- I want add repository theme folder
- Am I using an action hook correctly?
- Conditional required fields for WordPress Contact Form 7
- Replace code in plugin template
- Directory structure for plugin changes
- How can I pass value to function in add_menu_page?
- disable lightbox in a plugin [closed]
- User specific content (posts) / limiting visibility
- Remove the ‘Press This’ Tool
- How wordpress plugin hooks works? [duplicate]
- Selling Downloadable Products [closed]
- How to delete remain data in WP database after deleting custom post via admin interface
- How to add a plugin in WordPress theme directory?
- WP Customer Reviews call short code on another page [closed]
- Need help saving input fields for Security Deposit plugin in WC Vendors page
- Editing a theme
- How to disable plugin capability : “create new category”
- How to make content as required in custom post type?
- Any plugin installation and update overwrite current theme