You can use some of the following functions to build your own “theme plugins” registration:
is_plugin_active( $plugin );
is_plugin_active_for_network( $plugin );
is_plugin_inactive( $plugin );
get_plugins( $plugin_folder ); // register your own theme-plugins folder?
get_plugin_data( $plugin_file );
I use “theme plugins” myself. But not in the manner of: I have dozens of “real” plugins and then require some user to install them, but more in the fashion of: I question the existance of sub folders and register them with current_theme_supports( 'theme-plugin-xy' ) and then include their files.
Related Posts:
- framework for plugin/theme options panel? [closed]
- How to get the path to the current theme?
- How to include jQuery and JavaScript files correctly?
- Single functions.php or split into many small files?
- How can I configure Docker for developing and deploying a custom theme?
- What is an alternative method to the WordPress private _doing_it_wrong() function
- What is the difference between esc_html and wp_filter_nohtml_kses?
- jQuery in header or footer
- Update exisiting site to 3.5 release candidate
- Escaping built-in WP function return strings
- add_filter and remove_filter added before and after wp_query
- What is the difference between strip_tags and wp_filter_nohtml_kses?
- Having Problem On Getting WP Post Gallery Images URL
- What’s the difference between hooks, filters and actions? [duplicate]
- Customizer Not Saving Options
- How to add Font Awesome 5 icons in WP Admin dashboard menu?
- How Can I setup WP CLI on Windows development machine running AMPPS?
- WP_LOCALIZE_SCRIPT doesn’t work
- What is the difference between these two methods of writing $ instead of jQuery in WordPress [closed]
- What function to hook for changes made in status and visibility of a post
- Example of uninstaller routine to remove all custom theme options from wp_options
- Modify a Free Plugin available on wordpress.org & include with my Premium Theme? [closed]
- Execution limit and Memory limit errors even i changed to 1024M and 600(cache.php,load.php)?
- Are we allowed to use the Allman (BSD) indent style when coding WordPress plugins and themes?
- Best choice of options/settings framework for plugin/theme development
- Is there any way to have Featured Text, as opposed to Featured Image?
- Find source of notice / warning / errors efficiently
- StackExchange clone using WordPress?
- Sharing common functionality (functions, template parts) between plugins and themes?
- Display content from custom post without modifying the single template
- WordPress not working on localhost
- Can I change header.php of current theme through a plugin function?
- Creating a Link Text like Submit Button in Admin Page
- SQL query for custom taxonomy slugs
- Tried in different ways but sidebar not working?
- Short code not working in boostrap modal dont no why?
- Is there a way to list all actions registered by a plugin or theme?
- How to hook a custom user function to a wordpress core ajax action?
- Elementor custom Query with ACF fields to show matching woocommerce products custom fields
- WP Gutenberg Blocks – How to limit first/root blocks
- How developed with version control word press site on shared host? [closed]
- Following WordPress Markup Is mandatory, got awkward resultyby wordpress standard markup?
- How do I create plugin or theme using MVC pattern?
- PowerPress mobile media player
- When is the proper time to minify css and js with git workflow?
- How to Get Current Custom Post Type Associated Taxonomy Term
- Plugin templates vs Parent Theme
- Warning: include(): https:// wrapper is disabled in the server configuration by allow_url_include=0
- Plugin is not generating title tags on any pages or posts
- Is it necessary to do validation again when retrieving data from database?
- Can’t change the style of a submit input type? [closed]
- Make a plugin page out of influence of the theme’s style
- Update Data parameter of a wp_localize_script() call
- Custom entity search and display
- get_the_tags with separator control?
- 400 Bad Request, in wordpress theme development, wp_ajax
- Add child pages to submenu automatically
- Why in this archive page that call query_posts() function show only the last 10 posts?
- Issue on Setting $icon_url Parameter on WP add_menu_page()
- Why would you use esc_attr() on internal functions?
- Ajax: Populate with content from a post’s ID not working – duplicating current page html instead
- How to find where an object first instantiatiation
- Full documentation about $args for register_rest_route?
- How to replace settings in WordPress plugin from a theme
- Save temporary registration data
- WordPress dynamic widget by location?
- Setting a post’s category
- How can the_excerpt (or equivalent) be called on a category description?
- Change the behaviour of a button
- WP_Query order posts by category
- Configuring Xdebug with docker compose
- How to access index file in Block Themes?
- How to show comments from different Plugins to same post type?
- WordPress Favicon not Working For Images/Videos/PDFs
- Want to know how to reveal a WordPress theme, considering the theme name is hidden?
- Redirection from a specific page for users logged in but not with membership
- Metabox types list
- Is it possible to develop themes and plugins locally while still allowing content to be updated directly in the admin dashboard?
- Replace “content-area” of themes 404 page with plugin?
- Autoloading & Namespaces in WordPress Plugins & Themes: Can it Work?
- Custom premium registration form and profile page for a WordPress Web Application
- How do I make two shortcode use the same id and increment it when I use them multiple times?
- Post Pagination does not working on WP-Query
- How to destroy or dispose wordpress uploder/manager?
- How to CRUD from wordpress database in wordpress theme?
- Caption Shortcode: what filter to change the image size?
- Font Awesome stopped showing icons, shows &# text instead [closed]
- To remove rendering of menus and header, plugin or theme?
- Managing Custom Designed Content
- Issue on Getting WP Gallery Items In cpt-single.php As Attachments
- Generate activation url
- Display Data’s metabox in page
- Ajax functions – no access to wp-admin.php only online
- WordPress Beginer to Guru [duplicate]
- Saving multiple fields as array
- How can I make my website with wordpress having on-spot editing feature as compared to concrete5 CMS?
- Invalid Menu Items
- Gutenberg text field validation
- How to create A – Z List with pictures?
- How to customize password reset message page on success if no error in password reset