Yes, you can activate the child-theme dynamically. To do that follow the steps
- Move the unzipped child-theme to the themes folder
- Find the name of the child theme(I guess you already have that)
- Then Update the options table by
update_option('stylesheet', 'NAME OF THE CHILD THEME')
NOTE: You need to be sure that the active theme and child theme is compatible with each other.
Related Posts:
- wordpress on localhost lamp doesn’t let me install plugins
- Prompted for FTP details even with FS_DIRECT set to true
- What plugins do you commonly install on a fresh WordPress install?
- Overriding Plugin Template Files with Child Theme
- How do I cleanly override a plugin’s CSS with a child theme?
- Combine multiple plugins into one?
- What is the purpose of the “Hello Dolly” plugin?
- How to properly secure my WordPress installation?
- Function to activate WordPress theme inside a plugin
- WordPress plugin installation error
- Install plugin remotely
- What is $tab in `install_plugins_{$tab}` hook?
- Plugin to install a plugin
- Override the core function locate_template
- Distributing and packaging plugins
- How to override my plugin’s php classes with duplicates that are in my child theme folder
- Uncaught Error: Call to undefined function get_user_by() after moving function from theme to plugin
- unzip a folder on specific location and delete the zip file
- How to edit Image layout in single product page in woocommerce on wordpress?
- How to check what plugins used to be on a WordPress installation?
- Error uploading plugin zip file
- What causes an Unexpected HTTP Error within install plugins?
- How does WordPress process plugin installations?
- CMB2 installation – cannot get it to work
- Reusable functions and tools (Framework)
- Loading child theme script after plugins scripts
- Override Javascript in a Plugin?
- Pushing out updates to multiple installs?
- Why does my functions.php cause white-screen and media-library issues?
- Installing a plugin on a premium site [closed]
- How to overwrite core/libraries/vendor template with child theme
- Buddypress – Add the post_id in the bp_activity_add function
- Removing an action from wp_footer called in a class that’s inside a bigger class
- Create a multisite network for an existing installation
- How to show only next post pagination link using wp_link_pages()
- Theme/Plugin installation through url on button click
- Installing plugins and using complex folder structure with child theme in WordPress
- Why this function not working for install database on plugin activation
- Import sql data from a large file when installing plugin
- Overriding Parent Theme… will cause plugins failure?
- How to over-ride a file in a plugin? [closed]
- Get plugin download URL from slug
- WordPress override archive page template using a plugin
- Child Themes and Updating Parent Theme
- plugin generated 751 characters of unexpected output during activation
- WordPress Plugins Don’t Automatically Update
- Can plugin2 uninstall plugin1 at the very beginning of plugin2’s installation?
- What are the correct permissions so WP doesn’t ask for FTP credentials if installing plugin?
- Problem installing plugin: unexpected T_STRING, expecting T_FUNCTION
- To perform the requested action, WordPress needs to access your web > server
- WooCommerce: after install hook
- Managing wordpress Themes & plugins for multisite
- Set up functions to be overridden without using function_exists() by short-circuiting them?
- How to customize this theme? [closed]
- Installing plug ins on a wordpress hosted site
- Unable to install plugins
- Next Previous Post in wordpress with previous / next link with title?
- Trying to use shortcode for a plugin on custom homepage of Responsive theme
- Per theme plugins?
- Plugin Add New Installer failing
- Installing a Plugin ( Which is already manually uploaded )
- How to override any plugin file in the child theme
- how to create a custom page in child theme or plugin?
- I have updated my plugins, though one page of the site has ‘hit a critical error’
- Theme that includes a “core” plugin but the files in theme and child folder ignored
- Genesis Child Theme – Customize body
- Override plugin images so that they are not removed when the plugin is updated
- Plugin function in child theme
- Crazy redirect happening with no redirects set up
- Google trying to index child theme files
- How can I write code in a plugin for my child theme that will allow me to use remove_action() based on if the current page is the home page?
- Restoring a WordPress site
- Can’t install plugins after updating to WordPress 4.9
- Cron job emails blank
- WP-admin plugin installation via FTP silently fails on shared hosting
- database – multiple wordpress installations using same database – can they share plugin settings?
- How to install jquery dotdotdot plugin for WordPress?
- function of parent not working in childtheme
- What Are the Advantages of Using an mu-plugin
- Hook into install email
- Is there going to an issue running different features of WP site in different subdomains?
- How to tell if a script is being executed from a plugin, a theme or a child theme in WordPress?
- Moving to WordPress Premium versus a hosting provider
- How to add plugin activity in the menus?
- What possible reasons can cause my plugin not to be listed in the plugin search in the back-end of wordpress installs?
- How to Change MU/BuddyPress Group Blog New Installation Defaults [closed]
- No feedback when installing plugins or updating
- Why do I get this “peer’s certificate issuer not recognised” error when trying to install a theme?
- Can I install plugins manually on WP.com? [closed]
- Google analytics not working on WordPress
- Loading Canvas & WooCommerce translation file in child theme
- WordPress – connection information
- How do I activate my child theme, as I do not see it in developer tools
- Plugin installation works only with FTP – how to debug?
- Can’t modify plugin function
- Scripts don’t enqueue after removing plugin
- automation of plugin installations
- Issue with customizer and widget page
- ACF prugin for WooCommerce Shop Page
- Any plugin installation and update overwrite current theme