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
- Passing a parameter to filter and action functions
- Get a list of all registered actions
- How can I edit post data before it is saved?
- How To Activate Plugins via Code?
- Activate a plugin through PHPMyAdmin or FTP?
- How can I see all the actions attached to an “add_action” hook?
- Registering Class methods as hook callbacks
- How to customize woocommerce related products? [closed]
- How to check if a theme is active?
- How to include code only on specific pages?
- Changing the “Plugin Activated” Message Default
- Hooking in to plugins
- Generate dormant hook references
- Schedule WordPress Auto-Updates to only run during business hours
- Better to fire specific hooks or generic hooks with parameters?
- How to only hook on Single.php after content?
- Remove action from plugin on other plugin
- Why does wp_enqueue_style() in plugin not load stylesheet?
- Preventing a plugin from updating
- Pluggable function and activation check?
- How To Determine If A Filter Is Called In A Sidebar/Widget Context?
- 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?
- Customizing subject in comment notification e-mails
- 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?
- Edit plugin without hooks in functions.php
- How can I log a user out of WordPress before the page loads?
- What is the ‘admin_action_’ . $_REQUEST[‘action’] hook used for?
- WP showing “warning: call_user_func_array()”, What to do?
- Filter out results from REST API
- Automatically install wordpress plugin at theme activation
- Show a confirm message before plug-in activation
- 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)
- Filter Hook on plugin update
- Function to activate WordPress theme inside a plugin
- Enqueue style inside shortcode but its loaded at the bottom of page (before footer scripts)
- Modify featured image URL at runtime
- WordPress Hook that will run when media file deleted
- Seeking clarification on page request life-cycle
- Disallow a user to post in certain categories
- Intercepting a add_action
- Generic plugin (de)activation hook?
- Which hook should be used to validate custom form fields on the login form?
- Good tools for locating hooks in a wordpress page/admin interface/blog post?
- Activate Plugin which is in subfolder?
- disable active plugins for specific theme
- Twillio How To Send SMS for Custom Post Type
- Hook (upgrader_process_complete) running moment
- Adding a form at the end of the content
- Hide WordPress Plugin Deactivation Links
- Find out if request is for custom post type archive before query runs
- Use external link in the add sub menu
- Pass A Value From Outside To A Plugin Variable
- explanation for activate_plugin function in wordpress core
- Built in admin ajax hooks?
- Failed to invoke other hook from the init hook
- Remote plugin activation hook
- Does the ‘nav_menu_css_class’ filter accept 2 or 3 arguments?
- How can I add a custom meta value on file upload?
- Adding dynamic section to WordPress
- do_action and hook methods
- the_posts hook, which set of posts?
- How can I filter blog name?
- Force plugin to fail activation
- why does the add_action(‘the_content’) overwrite my page
- Fatal error: Class not found in
- Is it possible to add an action to the currently running action?
- woocommerce product attributes
- WordPress register_activation_hook table creation not working
- Multisite: Activate plugin for subsites only?
- How to filter content post only on save
- Filter or action hook to insert content on admin pages before tag
- The plugin generated x characters of unexpected output, $wpdb not defined
- Showing Notifications While Activating Plugin
- Is it possible to remove this action? (as it’s added just before it’s called)
- Correct way to use register_activation_hook
- plugin_action_links_{$plugin_file} hook not in the main plugin file
- OOP: Display warning and deactivate the plugin if PHP version is less than 5.4
- Over write plugin templates
- Woocommerce Shipping module available only for type of products [closed]
- How to find out what blocks are added by a plugin
- WordPress Plugin Boilerplate – add_action hook in static “activate” function
- Determine plugin name from within plugin_action_links filter
- Put code into body tags near top, using a plugin
- How to prevent action in ajax request, when in admin side?
- merging an array to an existing array using add_filter
- template_redirect not being called when using ajax
- Easy Digital Downloads (EDD) – Purchase Receipt emails couldn’t be logged
- what the hook for displaying course list page for learndash plugin? [closed]
- Cannot run the code after I activate the plugin
- How to add rewrite rules and pagination to retrieve attachments files?
- Hook before & after plugin / core update