The short answer is:
There is no code that’s being excuted
The long answer is:
You are suppose to define that code in your own plugin space. You add a activated_plugin hook and within the callable function you specify you define the things you want to happen when your plugin is actived, ie: create database, clean options, throw a few switches …
Related Posts:
- Prevent a plugin from being automatically activated
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- Advanced WordPress plugin activation detection
- Activation flow of a plugin in a multisite environment
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- How can I see all the actions attached to an “add_action” hook?
- How to include code only on specific pages?
- Changing the “Plugin Activated” Message Default
- Generate dormant hook references
- Is there any debug toolbar that shows whick hooks are called for the current page in WordPress?
- When can you get current page ID and initialize hooks right after?
- How to save the values of checkbox to the register setting?
- Can we hook a static method of a class to add_action inside that class?
- What is the ‘admin_action_’ . $_REQUEST[‘action’] hook used for?
- Filter out results from REST API
- How can I remove a hooked action created by a plugin?
- WordPress admin notice in plugin function
- Using the ‘draft_to_publish’ hook (post status transition)
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- Intercepting a add_action
- disable active plugins for specific theme
- Twillio How To Send SMS for Custom Post Type
- Find out if request is for custom post type archive before query runs
- Failed to invoke other hook from the init hook
- Does the ‘nav_menu_css_class’ filter accept 2 or 3 arguments?
- do_action and hook methods
- the_posts hook, which set of posts?
- Is it possible to add an action to the currently running action?
- Is it possible to remove this action? (as it’s added just before it’s called)
- Determine plugin name from within plugin_action_links filter
- Easy Digital Downloads (EDD) – Purchase Receipt emails couldn’t be logged
- Placement of Code in Plugin for hooking `save_post`
- Auto add content such as pages upon plugin activation?
- How to automate wordpress plugin activate and deactivate by php logic?
- How to initialize something in unit test before the init hook being called?
- Plugin won’t activate – cannot declare class (already in use)
- ‘wp_login’ action hook not working with wp-login.php file
- Where (or when) should I register a new taxonomy?
- Is any information available in PHP files in WP about plugin activation history?
- Hook (or other way) to find out when another plugin is activated / installed
- Activated plugin is stored as an object, rather than as a path
- Own plugin corrups plugin-activation
- Inserting above the comment template
- Insert new user with form submit ‘init’ hook
- Modifying the comments section through a plugin regardless of theme
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- How to check if tables in WordPress still exists after activations
- Run plugins only on certain pages
- Force file download on plugin activation
- WordPress user account activation
- Why this function not working for install database on plugin activation
- password_reset hook is not working
- The Hook registration_errors was not called
- edit_user_profile and show_user_profile are not firing inside a class
- Template filter for custom taxonomy terms
- What exactly happens to function argument availability when using a filter?
- Combining several CSS files into one for optimization
- Create a post builder skin in a plugin
- remove_action not removing add_action from constructor
- How do I add some javascript validation to the admin interface form’s onsubmit?
- Can my hooked uninstall class function access a global var declared in main plugin file?
- Hook for page Request?
- How to remove js ui library added by default by wordpress
- register_activation_hook() not working as expected
- How to use the pre_option filter before a plugin loads?
- How to remove a class function from a plugin by using remove_action()?
- profile_update hook doesn’t works inside a class
- Plugin: Hooking up classes that have their own hooks
- Hook for altering the content of all wp mails
- Apparent errer when installing plugin
- What hook can I use to modify custom post data before it is displayed on the page?
- Activate a plugin via a SQL query
- Quick press publish post hook
- How to deactivate my plugin upon deactivation of NextGen
- Creating a plugin that will display text on every page
- Hooks to run after a core upgrade?
- Why does “updated_post_meta” did not fire when uploading media other than image?
- Build a must-use plugin that tracks when other plugins are activated or deactivated
- Change Dashboard URL from wp-admin to wp-admin/index.php
- Callback hooked to post_updated firing on new posts as well
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- Replace plugin HTML to single text using hooks
- How can I disable W3 Total Cache Image Lazy Load for Specific Post Type?
- My WordPress activation hook isn’t working
- Cannot modify header information – headers already sent during plugin activation
- Customize plugin templates
- wordpress plugin translation not working
- What is the correct entry point for capturing coverage data
- Hook on widget context plugin to add custom context for widget
- Admin page and admin menu. Permissions plugin
- Display_rows() and column_cb() strange behaviour
- change output location of plugin function using a custom hook
- Problems with installing and deleting plugins
- Plugin constructor called multiple times
- How to change value of $menu_class in ep_nav_menu?
- How to create and use Custom hooks
- How wordpress plugin hooks works? [duplicate]
- Post curl function save twice using plugin hook function wordpress
- Why is my activator class adding the files/running the actions I add?
- Admin Notice is only localized when displaying the “Plugins” Backend Page