Take a look at
function activate_plugin( $plugin, $redirect="", $network_wide = false, $silent = false );
in wp-admin/includes/plugin.php
Related Posts:
- WP_Query leaking absurd amounts of memory
- How do I improve this admin query snippet to avoid generating duplicate results on non-meta searches?
- Symbolic Links on dev box with plugins and stylesheets
- Custom collection in media manager?
- Standard location for plugin to save/cache files?
- Releasing new plugin version, how to rename old options keys?
- Unit testing to simulate the loop
- What is the correct way for plugins to create tables with special charset/collation considerations?
- Cancel post save
- How to remove unwanted panels inside InspectorControls from core blocks in Gutenberg
- How to add a link to WordPress Plugin install Listing
- How to ensure “the_content” filter runs only for the main displayed content?
- Get file headers in custom file
- Hourly WP schedule, do I need at least 1 visitor hourly?
- wp_query (and post_id) is empty in admin_init
- When to check if a function exists
- Utilize TinyMCE hyperlink chooser outside of TinyMCE
- Set first image (external) as featured image / thumbnail
- add_theme_support using a plugin
- get all products of one category
- Settings API – Undefined Index when unchecking checkbox
- Really simple query giving error in SQL syntax
- Can’t echo get_delete_post_link
- Why is my shortcode not working
- prevent post to have multiple categories in my plugin
- Is there a naming convention for database tables created by a plugin?
- WordPress plugin options and jQuery
- Inserting JS snippet in the footer if there is no wp_footer?
- Can I differentiate between “Delete Post Permanently” and “Empty Trash” and do something for each accordingly?
- Use php libarary in wordpress plugins
- How do I add a javascript file to all admin pages via a plugin?
- unable to stop loop when using wp_insert_post with publish_post hook
- How to add a secondary button to a settings page with a custom action?
- Plugin options page – form with two different submit buttons
- Frontend Ajax call not working using wp_ajax, wp_enqueue_script and wp_localize_script
- How to update an existing table while updating plugin?
- Some strings from a .mo file do not load
- Add a row on clicking each post featured image
- How can I gracefully escape an error condition?
- best practice for query string values – get_query_var always empty for my value supplied in query string
- update post meta for checkbox in the admin when inserted in the front-end
- Plugin development: can’t update settings with multiple settings sections
- How to implement filesystem cache in WordPress
- How to integrate CLEditor to comment system?
- How can I add a custom “Text” widget to Appearance manager from functions.php?
- Filtering SelectControl items according the input from another SelectControl in Gutenberg Block (ES5, no JSX)
- what are the checksums surrounding keywords in the SQL generated by WP_Query and do I need to use them too?
- Is it possible to make sure that only my plugins output is shown to the enduser?
- As a plugin developer, how do I remove a plugin from the global plugin directory? [duplicate]
- How to do POST request with WP REST API v2 to custom table?
- Creating custom input fields on the admin side
- Plugin generated virtual pages
- add javascript files only when plugin is called?
- wp_dropdown_roles() to replace option value = code
- How do I access the menus produced by Dashboard > Appearance > Menus
- Determining URIs for plugin pages
- Filter Categories widget to allow custom sorting?
- Make a plugin page out of influence of the theme’s style
- How leave selected checkboxes marked after they are selected and saved in the database
- Custom Rest Endpoint: Post/Put/Patch not working
- plugin_dir_path wrong url
- 400 Bad Request, in wordpress theme development, wp_ajax
- How to allow only two (or more) users access to a plugin
- Return Value of load_plugin_textdomain
- Custom avatars in wordpress comments?
- Admin Subpages without Menu entry
- Special Formatting for WordPress Plugin Description?
- Multiple array for post_content on plugin activation
- custom wp_editor does not save the content in plugin settings
- Plugin Development – Get Admin Url (Including cases where wp-admin is not used)
- Any way to update_post_meta with html content? It gets stripped and becomes empty
- How to get the number of pages when paginating comments?
- Add code to template dynamically
- How Can I Add Code To A Preexisting Function Without Editing it
- WordPress video js error this.mediaElement.play is not a function
- Custom Icon for Plugin
- WP_Query order posts by category
- How to override supports of innerBlocks?
- How to store sensitive user data (passwords)
- How can we upload file to root directory of wordpress
- Implications of creating a plugin that adds functionality to other developer’s plugin?
- Adding External Gmap JS to WordPress
- First page download plugin
- why is update_user_meta creating arrays when trying to change the same value?
- How to avoid conflict if a plugin already have included open library?
- WordPress OOP get current user question?
- Including content into an add_shortcode() function
- Override WooCommerce files from plugin
- Add WordPress Meta Box saved form input to WordPress RSS feed [duplicate]
- WordPress Dropdown image select
- Unable to link CSS file
- What should I use instead of get_blog_option?
- post_results filter confused by pagination in sidebar and main section
- Best place to keep files that are called by cron jobs?
- Children Shortcodes?
- How do I call the dashboard’s sortable javascript in a plugin page?
- Settings API with arrays example
- Ajax functions – no access to wp-admin.php only online
- How can I get a plugin to hook ‘dbdelta_queries’ — a filter used during version update?
- Send retrieve password notification email with custom HTML email template