First, I would recommend against it.
I have a package of plugins that I use on almost all of our websites (both public and internal plugins)… and plugins should really remain plugins. Deploying a package of plugins is not hard or time consuming and only needs to be done once per project.
By integrating them into a theme, you lose the ability to activate/deactivate them if necessary, nor can you update them. Please consider that first.
Ok, so to incorporate them into your theme, this is what you would do…
- Create a “plugins” folder within your theme.
- Place both plugins in that folder.
- Within your functions.php file, use require_once to load each of the plugins default php files (if the plugin authors correctly followed convention, the main plugin file will be the one that matches the plugin folder name).
- Done.
Please also take note that you may have problems with activation/deactivation functions… so be careful.
Related Posts:
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- Disable plugin / plugin action via theme
- Hide prices and checkout functionality in woocommerce
- How do I exclude plugins from getting automatically updated?
- How can I create a bash install script for my WordPress sites setup (WP+plugins+theme)?
- Shared functionality in plugins and themes
- How to add favicon to my site – in both front end and admin panel
- Create theme files for plugin
- Reordering themes in admin panel
- Get URL of a specific file
- How get list of updates of wp site?
- How can I list only sites that use a particular theme or plugin?
- Which hook callback has priority if both plugin and theme use the same hook?
- Themes VS Plugins [duplicate]
- Force wordpress to request for FTP Info on theme/plugin install/update
- Can a WordPress plugin or theme contain a virus?
- adding a text message beside the comment submit button
- Override the core function locate_template
- WordPress site migration addvice
- Why are some of my thumbnails not being generated?
- add_meta_box (Will display only in specific page admin WordPress)
- WordPress 5 upgrade: until when is it safe to keep project running in 4.x?
- Installing WordPress only for a separate page – ‘mydomain.com/blog’
- How to Know if a Plugin can be used with my Theme [closed]
- Not able to open category post [closed]
- Reusable functions and tools (Framework)
- Only Homepage not loading properly
- Using custom JS plugins with WordPress?
- Globally register styles but enqueue them selectively
- Guidelines / restrictions about advertising /donate begging unside wordpress plugins or themes
- Admin Theme customization
- (FES EDD) New vendor submission page is blank
- (Big issue) Blog is Getting Down Each day.. what should i do.?
- Custom wordpress Theme and Plugin repository
- Overwrite category head title
- How to check if my wordpress websiste is nulled or not?
- Remove specific plugins and themes from the Dashboard->Updates page [duplicate]
- Create custom pages with a plugin
- Does heavy theme and plugins affect server’s response time? [closed]
- Proper way to use plugin functions in functions.php
- Theme Custom Pages
- how remove font to increase site speed load
- Use $variable from file1.php in file2.php (different file paths)
- How to get theme’s info from wordpress.org/themes using api.wordpress.org?
- How to find the list of custom post type where logged in user is author
- What is the purpose of WP_CONTENT_URL?
- How can I use my custom wordpress theme on two websites? [closed]
- why need theme,if page builder is there in wordpress [closed]
- speed up pagination for huge database
- Can I filter a function created by a theme or a plugin?
- Detect plugin/theme installation (via upload)
- How to check homepage contain blog post?
- how to design change in woocommerce cart page and all other page also by theme? [closed]
- Is it possible for a plugin to prevent certain plugins from being installed?
- How do you create a re-useable HTML fragment in wordpress
- plugin inside a wordpress theme
- Identify current wordpress theme
- Share plugins, themes, and multi post in a multidomain network
- Removing the custom_image_header from wp_head
- Gantry Framework: new page loads homepage content instead of page content
- Upgrade not working & themes not supporting
- use EDD Content Restriction for restricting php in template
- Elementor Sidebar not loading when PRO elements plugin is active
- Elementor pro page editing gives error There has been a critical error on this website. Please check your site admin email inbox for instructions
- Can’t load the the canges of field groups [duplicate]
- Javascript console errors and WSOD on edit post pages
- How Can I Create A Form In WordPress For Subscribers To Alert Them about new Listing posted?
- What plugin would make this happen? If is the theme
- WordPress site hamburger menu toggle not working
- WordPress wp get_temp_dir return non exiting folder, thus failing plugin & themes update
- Link custom post type to page
- How to disable a widget area of a specific page?
- when i activate my WordPress plugin cannot see customizer options or preview
- Writing SEO for Homepage when homepage is set to display latest posts
- Fatal error: Class ‘RDTheme’ not found
- Showing different js file for different theme in wordpress customizer api
- Getting unknown text in footer of email
- Seeking specific WordPress Layout
- Description: Too much time has passed without sending any data for document
- How can I make the search bar in my wordpress site search all of the pages rather than just the blog posts?
- WordPress Theme/Plugin Install (about FTP Connection)
- WordPress core update fails – no issues with plugin updates
- Why the output of an image gallery plugin is not displayed into a page of my custom theme?
- How to add the functionality of WordPress needed to be installed to be mandatory while installing themes
- Incentive theme – Getting ’You do not have sufficient permissions’ while trying to install plugins
- How do I make the selected layout display for all MarketPress pages?
- Issues with Post 2 Post Plugin
- Disqus plugin outputs script as literal text
- Can’t get custom user meta to show in header
- How to get current template file used by WordPress?
- How to make only selected posts appear on a selected wordpress page
- How can I modify the colors of my theme for a single section of my site? [closed]
- How to work email subscribe in WordPress?
- Terms id wordpress error
- How to make wordpress backend mobile optimized.?
- wordpress illegal string offset ‘parameter’ error
- What is phpBB? Is it something like a plugin which I can use in WordPress? [closed]
- Is there a way to stop the theme and especially plugins listed?
- Issue with customizer and widget page
- WordPress menu dissapear when I add a parameter to custom post archive