I try this code and it solve my problem
if ( is_child_theme() === false ) {
// files moved
} else {
// do nothing
}
Thankx to @birgire
Related Posts:
- How to make “upgrade safe” theme for a plugin?
- Looking for WordPress System Diagrams
- How can I load a page template from a plugin?
- Overwrite theme file from plugin
- How to control output of custom post type without modifying theme?
- When is it appropriate to put functions on page template vs. functions.php?
- Filter to change the content of 404 page
- How to properly use a hook to create template for custom product type in a plugin such as Woocommerce? [closed]
- Use theme constants in plugin?
- WordPress removing data attributes for scheduled post
- Is there a way to loop through a shortcode datasource to create a table?
- Which action is triggered when a theme was modified?
- creating custom archive template within plugin for custom post type using archive_template filter
- Where to call wp_enqueue_script in a plugin with custom template?
- Can I change header.php of current theme through a plugin function?
- Can Page Templates be Applied to Archive and Post Templates?
- ORDER BY wp_post custom column name in wp_query
- Create a free scripts and styles template within a plugin
- How can I turn a custom wordpress page into a product page?
- How to preserve changes in templates and other files
- Plugin templates vs Parent Theme
- How to modify files inside wp-includes directory in wordpress
- What action hook can I use to add a JavaScript to a page post using a theme template that is not including get_header() nor get_footer()?
- Update Data parameter of a wp_localize_script() call
- How to create templates for a custom module to show on the front end within my theme?
- Why aren’t some plugin styles loading when I load a template?
- Plugin custom post template; without overriding all posts
- Best way to distribute templates and code accross multiple wordpress sites?
- Load php file with jquery in single.php
- Parent/Child themes – both CSS files loaded
- Want to know how to reveal a WordPress theme, considering the theme name is hidden?
- Overriding the template files using a plugin for all themes
- How do I use a plugin to swap out the template file for a custom post type?
- How can I make custom page templates work on child theme?
- Javascript not being loaded only in custom taxonomy template
- Add new header/footer on landing page with plugin
- Use a page as a template for a custom post type
- What is the “best” way to update a theme via a plugin?
- Page template compatibility with different themes
- How to set custom homepage via a plugin
- Template file structure , wordpress hook for altering the template
- Displaying External Data – Not Posts
- Making plugin output customizable
- Use different archive template for plugin
- How to display custom taxonomy and terms using/creating plugin template
- How to check during “pre_get_posts” if WP performing default query for specific custom template?
- WP Job Manager – Show recent jobs as cards
- Help interpreting @wordpress/create-block-tutorial-template usage error
- ‘global’ not working when passing variable from plugin file to template
- get_template_parts() usage
- Azure WordPress deployment
- Make wordpress join default user metas with a column from another table while displaying the wp_users table on the users screen
- AJAX button with success callback. (Titan Framework)
- Is there any way to fire heartbeat API from for website visitors?
- How to output functions from plugin inside theme
- ajax working when function is on child theme but not in plugin page
- modify show UI of a registered taxonomy
- I need to refresh page to display wp_get_current_user() : why?
- How to use template inside plugin shortcode with variables for big HTML code
- Look for a file in a theme before loading from plugin
- AJAX call to admin-ajax.php by subscriber returns home page
- Using function from enqueued .js file in theme in plugin?
- how to save wp_editor html content in options table
- Sharing Variables between scheduled events
- Issue with plugin sub menu and pages
- Custom Plugin Options Won’t Update
- What is the way to hook all wordpress email
- How can I programmatically change a MySql variable (foreign_keys_check)?
- Configure WordPress to Generate Scheme-less Relative URLs
- How to use gettext for specific user role
- Hide one specific woocoomerce product
- Problem with display data from get_option
- wp_schedule_event is registered but function isn’t running
- Empty Array is Giving Warning for array_merge()
- Custom Post Type Object – Undefined Variables
- settings api – add_settings_section not working
- Enqueue a file that’s not js or css
- WordPress Plugin Boilerplate: Addition of 3rd party scripts and styles [closed]
- How to format custom fields when editing an attachment?
- How to redirect home page to another page after login for all user?
- Woocommerce – Provide Associated Category Link for Product List Plugin [closed]
- how to create category with code in wordpress using form
- How can I call wp-load.php in my plugin file
- add_filter img_caption_shortcode not implemented
- Import user data using CSV
- How to create new content type and flushes rewrite rules without visiting the permalinks page?
- overwrite code snippet from parent to child theme
- Enqueueing common php scripts in a plugin
- How to add Plugin functionality in WordPress Frontend Menus
- How do I get variables from my plugin’s settings page?
- How add default term meta to prevent an error?
- plugin content on front-page only. Nowhere else
- How to get current logged-in user details in multisite?
- Creating child theme out of Coeur
- Check if the current user is author of first comment
- WP Plugin with Upgrade option
- Detect change in site_url and home_url
- Reporting errors in a shortcode plugin
- How can I control if post updated
- Does WordPress default CSS have Grids?