Hooks
Hooks in MainWP allow developers to extend and customize the platform’s functionality by adding custom actions or filtering data. This reference provides detailed information on both action and filter hooks, categorized for easy navigation, helping developers create more efficient integrations and tailor MainWP to specific needs.
- Fires immediately after a new website is…
- Hook to tweak site data in the…
- Filters the list of required plugins by…
- Filters the page title on an individual…
- Filters custom tokens for in Pro Reports…
- Filters the Logo link.
- Adds new site to MainWP Dashboard Parameters…
- Fires at the bottom of the HTTP…
- Fires at the top of the HTTP…
- Fires at the bottom of the daily…
- Fires at the top of the daily…
- Fires at the bottom of the site…
- Fires at the top of the site…
- Fires at the bottom of the basic…
- Fires at the top of the basic…
- Fires at the bottom of the help…
- Fires after theme unignore. $decodedIgnoredThemes (array) Ignored…
- Fires before theme unignore. (array) $website (object)…
- Fires after theme ignore. Parameters $website (object)…
- Fires before theme ignore. Parameters $website (object)…
- Fires after theme activate/delete actions. Parameters $information…
- Fires before theme activate/delete actions. Parameters $action…
- Fires on the bottom of the Ignored…
- Fires on the top of the Ignored…
- Fires on the bottom of the Ignored…
- Fires on the top of the Ignored…
- Fires before the Auto Update Themes table.…
- Fires before the Auto Update Themes table.…
- Adds a new action to the bulk…
- Fires after the Themes table. Usage Example…
- Fires before the Themes table. Usage Example…
- Fires at the bottom of the sidebar…
- Fires after the Submit Button element on…
- Fires before the Submit Button element on…
- Fires after the Search Options element on…
- Fires before the Search Options element on…
- Fires after the Select Sites element on…
- Fires before the Select Sites element on…
- Fires at the bottom of the Sidebar…
- Fires at the top of the Sidebar…
- Adds a new column header to the…
- Adds a new column to the Manage…
- Fires at the right side of the…
- Fires at the left side of the…
- Fires at the right side of the…
- Fires at the left side of the…
- Fires at the bottom of the help…
- Fires after plugin unignore. Parameters $decodedIgnoredPlugins (array)…
- Fires before plugin unignore. Parameters $decodedIgnoredPlugins (array)…
- Fires after plugin ignore. Parameters $decodedIgnoredPlugins (array)…
- Fires before plugin ignore. Parameters $decodedIgnoredPlugins (array)…
- Fires after plugin activate/deactivate/delete actions. Parameters $information…
- Fires before plugin activate/deactivate/delete actions. Parameters $action…
- Fires on the bottom of the Ignored…
- Fires on the top of the Ignored…
- Fires on the bottom of the Ignored…
- Fires on the top of the Ignored…
- Fires after the Auto Update Plugins table.…
- Fires before the Auto Update Plugins table.…
- Adds new action to the bulk actions…
- Fires after the Plugins table. Usage Example…
- Fires before the Plugins table. Usage Example…
- Adds a new action to the Manage…
- Fires at the plugin card at bottom…
- Fires at the plugin card at top…
- Fires at the bottom of the sidebar…
- Fires after the Submit Button elemnt on…
- Fires before the Submit Button elemnt on…
- Fires after the Search Options elemnt on…
- Fires before the Search Options element on…
- Fires after the Select Sites element on…
- Fires before the Select Sites element on…
- Fires at the top of the sidebar…
- Adds a new Manage Plugins table column…
- Add a new column to the Manage…
- Fires at the left side of the…
- Fires at the left side of the…
- Fires at the right side of the…
- Fires at the left side of the…
- Fires before redirection to posting 'bulkpage' page…
- Fires when saving the bulkpage. Parameters $post_id…
- Fires after the post posting process is…
- Fires while posting page. Usage Example [code]…
- Fires right before posting the 'bulkpage' to…
- Fires at the bottom of the help…
- Adds a new item in the Actions…
- Adds a new column item in the…
- Fires after the Manage Pages table. Usage…
- Adds new column header to the Manage…
- Fires before the Manage Pages table. Usage…
- Fires at the bottom of the sidebar…
- Fires after the Submit Button on Manage…
- Fires before the Submit Button on Manage…
- Fires after the Search Options on Manage…
- Fires before the Search Options on Manage…
- Fires after the Select Sites section on…
- Fires before the Select Sites section on…
- Fires at the top of the sidebar…
- Fires at the right side of the…
- Adds a new action to the Bulk…
- Fires at the left side of the…
- Fires at the bottom of the help…
- Fires before redirection to posting 'bulkpost' page…
- Fires when saving the bulkpost. Parameters $post_id…
- Fires right after the Submit button. Usage…
- Fires right before the Submit button. Usage…
- First on the Edit post screen after…
- Adds a new item in the Actions…
- Adds a new column item in the…
- Fires after the Manage Posts table. Usage…
- Adds new column header to the Manage…
- Fires before the Manage Posts table. Usage…
- Fires at the bottom of the sidebar…
- Fires after the Submit Button on Manage…
- Fires before the Submit Button on Manage…
- Fires after the Search Options on Manage…
- Fires before the Search Options on Manage…
- Fires after the Select Sites section on…
- Fires before the Select Sites section on…
- Fires at the top of the sidebar…
- Fires at the right side of the…
- Fires at the left side of the…
- Adds a new action to the Bulk…
- Fires after post/page publish/unpublish/trash/delete/restore actions. Parameters $information…
- Fires before post/page publish/unpublish/trash/delete/restore actions. Parameters $type…
- Adds new action to the Bulk Actions…
- Fires while posting posts. Parameters $website (object)…
- Fires right before posting the 'bulkpost' to…
- Fires after saving email settings. Usage Example…
- Fires after saving email settings. Usage Example…
- Fires after advanced settings save. Usage Example…
- Fires before saving advanced settings. Usage Example…
- Fires after saving general settings. Usage Example…
- Fires before general settings save. Usage Example…
- Fires after the default email settings. Usage…
- Fires at the bottom of advanced settings…
- Fires at the top of advanced settings…
- Fires at the bottom of MainWP tools…
- Fires at the top of MainWP tools…
- Fires at the bottom of settings form.…
- Fires at the top of settings form.…
- Fires after plugin/theme install. Parameters $output (mixed)…
- Fires before plugin/theme install. Parameters $post_data (array)…
- Fires before plugin/theme/translation update actions. Usage Example…
- Fires before plugin/theme/translation update actions. Usage Example…
- Fires after WP update. Parameters $website (object)…
- Fires before WP update. Parameters $website (object)…
- Fires at the bottom of the sidebar…
- Fires after the Submit button on the…
- Fires before the Submit button on the…
- Fires after the New password form on…
- Fires before the New password form on…
- Fires after the Select Sites section on…
- Fires before the Select Sites section on…
- Fires at the top of the sidebar…
- Fires after the Connected Admin Users table.…
- Fires before the Connected Admin Users table.…
- Fires at the bottom of the Update…
- Fires at the top of the Update…
- Fires after user edit/delete/update_user/update_password actions. Usage Example…
- Fires before user edit/delete/update_user/update_password actions. Usage Example…
- Fires after new user creation. Usage Example…
- Fires before a new user is created.…
- Adds a new Manage Users table column.…
- Adds a new Manage Users table header…
- Fires at the bottom of the sidebar…
- Fires after the Submit Button on Manage…
- Fires before the Submit Button on Manage…
- Fires after the Search Options section on…
- Fires before the Search Options section on…
- Fires after the Select Sites section on…
- Fires before the Select Sites section on…
- Fires on top of the sidebar on…
- Fires at the right side of the…
- Fires at the left side of the…
- Adds new Bulk Actions option under on…
- Adds a new item in the Actions…
- Fires after the User table.
- Fires before the User table. Usage Example…
- Fires after the Add New user form.…
- Fires at the bottom of the sidebar…
- Fires after the Submit button on the…
- Fires before the Submit button on the…
- Fires after the Select Sites section on…
- Fires before the Select Sites section on…
- Fires at the top of the sidebar…
- Fires after the Add New user form…
- Fires before the Add New user form…
- Fires before the Add New user form…
- Fires at the bottom of the help…
- Fires on the bottom of the Import…
- Fires on the top of the Import…
- Fires under the Import Users section. Usage…
- Fires above the Import Users section. Usage…
- Renders on the bottom of the Cron…
- Renders as the last row of the…
- Renders on the top of the Cron…
- Fires on the bottom of the Status…
- Fires on the top of the Status…
- Fires on the bottom of the System…
- Fires on the bottom of the System…
- Fires after the .htaccess file section. Usage…
- Fires before the .htaccess file section. Usage…
- Fires after the WP Config section. Usage…
- Fires before the WP Config section. Usage…
- Fires after the Error Log table. Usage…
- Fires before the Error Log table. Usage…
- Filters the Updates table column items.
- Filters the Updates table column headers.
- Fires after the navigation tabs on the…
- Fires before the navigation tabs on the…
- Fires at the bottom of the Abandoned…
- Fires at the bottom of the Abandoned…
- Fires at the top of the Abandoned…
- Fires at the bottom of the Abandoned…
- Fires at the top of the Abandoned…
- Fires at the bottom of the Abandoned…
- Fires at the top of the Abandoned…
- Fires at the top of the Abandoned…
- Fires at the bottom of the Abandoned…
- Fires at the bottom of the Abandoned…
- Fires at the top of the Abandoned…
- Fires at the bottom of the Abandoned…
- Fires at the top of the Abandoned…
- Fires at the bottom of the Abandoned…
- Fires at the top of the Abandoned…
- Fires at the top of the Abandoned…
- Fires at the bottom of the Translation…
- Fires at the bottom of the Translation…
- Fires at the top of the Translation…
- Fires at the bottom of the Translation…
- Fires at the top of the Translation…
- Fires at the bottom of the Translation…
- Fires at the top of the Translation…
- Fires at the top of the Translation…
- Fires at the bottom of the Theme…
- Fires at the bottom of the Theme…
- Fires at the top of the Theme…
- Fires at the bottom of the Theme…
- Fires at the top of the Theme…
- Fires at the bottom of the Theme…
- Fires at the top of the Theme…
- Fires at the top of the Theme…
- Fires at the bottom of the Plugin…
- Fires at the bottom of the Plugin…
- Fires at the top of the Plugin…
- Fires at the bottom of the Plugin…
- Fires at the top of the Plugin…
- Fires at the bottom of the Plugin…
- Fires at the top of the Plugin…
- Fires at the top of the Plugin…
- Fires at the top of the WP…
- Fires at the bottom of the WP…
- Fires at the top of the WP…
- Fires at the bottom of the WP…
- Fires at the top of the WP…
- Fires at the top of the WP…
- Fires at the bottom of the help…
- Fires after the HTTP responses table on…
- Fires before the HTTP responses table on…
- Fires after the actions bar on the…
- Fires before the actions bar on the…
- Fires after the navigation tabs on the…
- Fires before the navigation tabs on the…
- Fires in the sync sites modal, in…
- Fires after the main navigation element. Usage…
- Fires before the main navigation element. Usage…
- Hooks main navigation sub-menu items. Usage Example…
- Hooks main navigation menu items. Usage Example…
- Fires at the bottom of the Screen…
- Fires at the top of the Screen…
- Fires after the site note content in…
- Fires before the site note content in…
- Fires after the progress list in the…
- Fires before the progress list in the…
- Fires at the bottom of widget content.…
- Fires at the top of widget content.…
- Fires at bottom of the Add New…
- Fires after the MainWP sub-header element. Usage…
- Fires at the subheader element to hook…
- Fires at the table top on the…
- Fires before the MainWP sub-header element. Usage…
- Fires after the MainWP header element. Parameters…
- Fires before the MainWP header element. Parameters…
- Fires before the #mainwp-content-wrap element. Parameters $websites…
- Fires Help sidebar content Usage Example [code]…
- Adds a new shortcut item in the…
- Fires after the Select Groups list. Parameters…
- Fires before the Select Groups list. Parameters…
- Fires after the Select Sites list. Parameters…
- Fires before the Select Sites list. Parameters…
- Fires after the Select Sites box filters.…
- Fires before the Select Sites box filters.…
- Fires after the Select Sites box. Usage…
- Fires before the Select Sites box. Usage…
- Adds Extension instance to the Extensions located…
- Fires upon checking for available updates scheduled…
- Hooks the daily digest email notification send…
- Hooks MainWP cron jobs actions. Usage Example…
- Fires at the bottom of MainWP content.…
- Fires upon MainWP plugin activation. Usage Example…
- Fires at the bottom of the Site…
- Fires at the bottom of the Site…
- Fires at the top of the Site…
- Fires at the top of the Site…
- Fires at the bottom of the Themes…
- Fires after the inactive themes list in…
- Fires before the inactive themes list in…
- Fires after the active themes list in…
- Fires before the active theme list in…
- Fires at the top of the Themes…
- Fires at the bottom of the Plugins…
- Fires after the inactive plugins list in…
- Fires before the inactive plugins list in…
- Fires after the active plugins list in…
- Fires before the active plugins list in…
- Fires at the top of the Plugins…
- Fires at the bottom of the Notes…
- Fires at the top of the Notes…
- Fires after the list of recent trash…
- Fires before the list of recent trash…
- Fires after the list of recent future…
- Fires before the list of recent future…
- Fires after the list of recent pending…
- Fires before the list of recent pending…
- Fires after the list of recent draft…
- Fires before the list of recent draft…
- Fires after the list of recent published…
- Fires before the list of recent published…
- Fires at the bottom of the Recent…
- Fires after the recent pages lists, before…
- Fires at the top of the Recent…
- Fires after the list of recent trash…
- Fires before the list of recent trash…
- Fires after the list of recent future…
- Fires before the list of recent future…
- Fires after the list of recent pending…
- Fires before the list of recent pending…
- Fires after the list of recent draft…
- Fires before the list of recent draft…
- Fires after the list of recent published…
- Fires before the list of recent published…
- Fires at the bottom of the Recent…
- Fires after the recent posts lists, before…
- Fires at the top of the Recent…
- Fires after the list of disconnected sites…
- Fires before the list of disconnected sites…
- Fires after the list of connected sites…
- Fires before the list of connected sites…
- Fires after the list of all sites…
- Fires before the list of all sites…
- Fires at the bottom of the Connection…
- Fires at the top of the Connection…
- Fires at the top of the Connection…
- Fires at the bottom of the Security…
- Fires before the last (actions) column in…
- Fires at the bottom of the Security…
- Fires at the bottom of the Updates…
- Fires at the bottom of the Abandoned…
- Fires at the top of the Abandoned…
- Fires at the bottom of the Update…
- Fires after the Translation updates section in…
- Fires before the Translation updates section in…
- Fires after the Theme updates section in…
- Fires before the Theme updates section in…
- Fires after the Plugin updates section in…
- Fires before the Plugin updates section in…
- Fires after the WordPress updates section in…
- Fires before the WordPress updates section in…
- Fires at the top of the Update…
- Fires after the total updates section in…
- Fires before the total updates section in…
- Fires at the top of the Overview…
- Fires at the bottom of the Overview…
- Fires at the bottom of the right…
- Fires at the top of the right…
- Fires at the bottom of the middle…
- Fires at the top of the middle…
- Fires at the bottom of the left…
- Fires at the top of the left…
- Fires at the bottom of the help…
- Adds an action to the Group actions…
- Fires after the Manage Groups table. Usage…
- Fires before the Manage Groups table. Usage…
- Renders the footer on the Sites screen.…
- Fires on the Email Settings page at…
- Fires on the Edit child site page…
- Fires on a child site Security Scan…
- Fires on a child site Security Scan…
- Fires on a child site Security Scan…
- Fires after the Manage Sites table. Usage…
- Adds custom manage sites action item. Parameters…
- Fires before the Manage Sites table. Usage…
- Fires before the Sites table items are…
- Renders the tabs on the Sites screen.…
- Fires after a new sites group has…
- Fires upon site removal process in order…
- Fires after a child site has been…
- Fires after the child site update process.…
- Fires before the child site update process.…
- Fires after updating the child site options.…
- Fires after updating website settings. Parameters $website->id…
- Fires upon successful site synchronization. Parameters $pWebsite…
- Fires after adding a website to MainWP…
- Fires upon successful synchronization process. Usage Example…
- Filters subpages for the Settings page.
- Filters subpages for the Users page.
- Filters the Password length for the Update…
- Filters Admin Users table features. Parameters $table_features…
- Filters the Manage Users table features. Parameters…
- Filters the Password lenght for the Add…
- Filters the Import Users Download Sample CSV…
- Filters the Themes widget title text. Parameters…
- Filters the Plugins widget title text. Parameters…
- Filters the Notes widget title text. Parameters…
- Filters the Site info widget title text.…
- Filters the Child Info array for the…
- Filters the recent pages widget title text.
- Filters the recent posts widget title text.
- Filters the Connection Status widget list item…
- Filters the Connection Status widget list item…
- Filters the Connection Status widget title text.
- Filters the Security Issues widget list item…
- Filters the Security Issues widget list item…
- Filters the Security Issues widget title text.
- Filters the Abandoned Plugins & Themes divider…
- Filters the Update Details divider text in…
- Filters the Update Everything button text.
- Filters the Updates Overview widget title text.
- Filters the Show All Updates button text.
- Filters the Sync Dashboard with Child Sites…
- Filters available widgets on the Overview page…
- Filters MainWP page navigation menu items. Parameters…
- Filters the MainWP header element actions.
- Filter the MainWP header element right side…
- Filter the MainWP header element left side…
- Filter the MainWP page title in the…
- Filters whether default jQuery datepicker should be…
- Filters disabled MainWP navigation items.
- Filters whether the MainWP should hide referrer…
- Filters whether the email should be in…
- Filters the the time when the Daily…
- Filters the status check interval.
- Filters the chunk size (number of sites)…
- Filters data returned from the child site…
- Filters additional data in the sync request.…
- Filters whether the Clone feature is enabled…
- Filters the maximum upload file size. Default:…
- Filters supported premium themes to fix compatibility…
- Filters supported premium plugins to fix compatibility…
- Filters supported premium themes to fix compatibility…
- Filters supported premium plugins to fix compatibility…
- Filters the max number of plugins/themes to…
- Filters the Daily Digest email content and…
- Filters the template location. Parameters $template_name (string)…
- Filters the Client Reports available content.
- Filters the Pro Reports available content.
- Filters available templates and adds support for…
- Enables and filters the Client Reports extension…
- Enables and filters the Boilerplate extension tokens.…
- Enables and filters the Boilerplate extension tokens.…
- Filter the Monitoring table features. Parameters $table_features…
- Filters bulk actions on the Monitoring Sites…
- Filters the Monitoring Sites table columns. Allows…
- Filters the Monitoring Sites table column items.…
- Filters the Logo alt attribute.
- Filters the Logo src attribute.
- Filters URL for the Go to WP…
- Filters main navigation subt-menu items
- Filters main navigation menu items
- Filter the Monitoring table features. Parameters $table_features…
- Filters bulk actions on the Manage Sites…
- Filters the Manage Sites table columns. Allows…
- Filters the Manage Sites table column items.…
- Filters the link for the last backup…
- Filters allowed groups for the current user.
- Filters allowed sites for the current user.
- Prepares parameters for the authenticated cURL post.
- Filters whether response should be in the…
- Filters users accounts so it allows you…
- Filters the location for the Edit process.…
- Filters the Updates table features. Parameters $table_features…
- Filters the DataTable options for the HTTP…
- Filters the default sorting option for Abandoned…
- Filters the default sorting option for Abandoned…
- Filters the default sorting option for Theme…
- Filters the default sorting option for Plugin…
- Filters the default sorting option for Translation…
- Filters backup options to set the correct…
- Filters the Theme Auto Updates table features.…
- Filter the Themes table features. Parameters $table_features…
- Filters subpages for the Themes page.
- Filters the Cron Schedules table features. Parameters…
- Filters subpages for the Status page.
- Limits the number of error log records…
- Filters the error log files to show.
- Filters the primary backup options for the…
- Filters whether the server-self check should verify…
- Filters the default security checks and enables…
- Filters the default security checks and enables…
- Filters the Manage Posts table features. Parameters…
- Set search parameters for the fetch process.…
- Set default custom post types to exclude…
- Filters subpages for the Posts page.
- Sets post status when posting 'bulkpost' to…
- Sets data after the posting process to…
- Filters the Plugin Auto Updates table features.…
- Filter the Plugins table features. Parameters $table_features…
- Filters whether file modifications are allowed on…
- Filters subpages for the Plugins page.
- Filters the Manage Pages table features. Parameters…
- Sets data after the posting process to…
- Sets Page data to post to child…
- Sets page status when posting 'bulkpage' to…
- Set search parameters for the fetch process.
- Filters subpages for the Pages page.
- Contains the list of enabled widgets and…
- Adds metaboxes (widgets) to the Overview page.
- Filters subpages for the Sites page.
- Prepares upload URLs for the bulk install…
- Adds support for additional data such as…
- Adds additional options related to Clean and…
- Adds extra options to the bulk upload…
- Limits the number of recent posts &…
- Limits the number of updates that will…
- Description The "mainwp_getextensions" filter is used to…
- Description The mainwp_getgroups filter may be used…
- Description The mainwp_getsites filter may be used…