WordPress action hook · part of WordPress core
save_post
A WordPress core action that 62 plugins also fire themselves, running on 2M+ sites between them.
“This action is documented in wp-includes/post.php.”
How to use save_post
It's an action: your callback runs at that point and receives 3 arguments. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'save_post', function( $ID, $post, $arg3 ) {
// Your code runs here.
}, 10, 3 );Argument names come from Page Builder by SiteOrigin's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
This hook is fired by WordPress core too. Official reference on developer.wordpress.org →
62 plugins that fire save_post
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Smart Slider 3800,000+ installs
do_action( 'save_post', $postID, $post, true )Nextend/SmartSlider3/Application/Helper/HelperSliderChanged.php:105 -
Web Accessibility (formally known as Ally)500,000+ installs
do_action( 'save_post', $entry_id, $post, true )modules/remediation/classes/utils.php:176 -
Page Builder by SiteOrigin400,000+ installs
do_action( 'save_post', $post->ID, $post, true )inc/admin.php:1279 -
WP All Import100,000+ installs
do_action( 'save_post', $pid, $post_object, $is_update )models/import/record.php:4195 -
Optimization Detective50,000+ installs
do_action( 'save_post', $post->ID, $post, true )detection.php:315 -
User Profile Builder40,000+ installs
do_action( 'save_post', $this->id, $post, false )assets/lib/class-mustache-templates/class-mustache-templates.php:461 -
BEAR30,000+ installs
do_action( 'save_post', $product_id, $pp, true )classes/models/products.php:856 -
Editorial Calendar20,000+ installs
do_action( 'save_post', $edcal_postid, $post, true )edcal.php:1355 -
Royal MCP10,000+ installs
do_action( 'save_post', $post_id, $post, true )includes/MCP/Support/Post_Write_Hooks.php:58 -
Bulky10,000+ installs
do_action( 'save_post', $product_id, $pp, true )admin/ajax.php:414 -
Bulk Edit Products for WooCommerce10,000+ installs
do_action( 'save_post', $post_id, get_post( $post_id ), true )modules/wp-sheet-editor/inc/api/helpers.php:946 -
Estatik Real Estate Plugin10,000+ installs
do_action( 'save_post', $listing_id, $property->get_wp_entity(), true )includes/classes/class-plugin-migration.php:360 -
PublishPress Revisions: Duplicate Posts, Submit, Approve and Schedule Content Changes10,000+ installs
do_action( 'save_post', $published->ID, $_published, true )admin/revision-action_rvy.php:1315 -
Bulk Edit Posts and Products in Spreadsheet7,000+ installs
do_action( 'save_post', $post_id, get_post( $post_id ), true )modules/wp-sheet-editor/inc/api/helpers.php:946 -
Admin Management Xtended5,000+ installs
do_action( 'save_post', $postid, $post, true )general-functions.php:179 -
WOLF4,000+ installs
do_action( 'save_post', $post_id, $pp, true )classes/models/posts.php:371 -
Bulk Edit Categories and Tags3,000+ installs
do_action( 'save_post', $post_id, get_post( $post_id ), true )modules/wp-sheet-editor/inc/api/helpers.php:946 -
Property Hive3,000+ installs
do_action( 'save_post', $new_post_id, $post, false )includes/class-ph-duplicate-post.php:48 -
WPGatsby3,000+ installs
do_action( 'save_post', $post->ID, $post, true )src/ActionMonitor/Monitors/PreviewMonitor.php:81 -
Seamless Donations is Sunset2,000+ installs
do_action( 'save_post', $post_ID, $post, $update )inc/utilities.php:1794 -
Houzez Property Feed1,000+ installs
do_action( 'save_post', $property_post_id, get_post($property_post_id), false )includes/class-houzez-property-feed-process.php:247 -
Bulk Edit and Create User Profiles1,000+ installs
do_action( 'save_post', $post_id, get_post( $post_id ), true )modules/wp-sheet-editor/inc/api/helpers.php:946 -
BrikPanel: WooCommerce Dashboard & Analytics, Abandoned Cart Recovery, Order Export, Inventory Management & Bulk Editor1,000+ installs
do_action( 'save_post', $saved_id, $post_obj, true )front-end/products/brikpanel-product-editor.php:10706 -
Expiring Posts1,000+ installs
do_action( 'save_post', $post->ID, $post, true )expiring-posts.php:411 -
BjornTech PayPal POS integration for WooCommerce600+ installs
do_action( 'save_post', $id, $post, true )includes/izettle-integration-product-handler.php:175 -
FlexStock600+ installs
do_action( 'save_post', $post_id, $post, $update )includes/helper/functions.php:1875 -
Bulk Edit Coupons for WooCommerce500+ installs
do_action( 'save_post', $post_id, get_post( $post_id ), true )modules/wp-sheet-editor/inc/api/helpers.php:946 -
BjornTech Fortnox Hub for WooCommerce300+ installs
do_action( 'save_post', $parent_id, $post, true )includes/class-woo-fortnox-hub-fn-product-handler.php:863 -
Web Directory plugin Free300+ installs
do_action( 'save_post', $post_id, $post, true )core/classes/listings/listing_form_assets.php:890 -
WPMelon Advanced Bulk Edit for WooCommerce300+ installs
do_action( 'save_post', $post->ID, $post, true )includes/Handlers/WP_Save_Hooks_Handler.php:257 -
MEGA AI200+ installs
do_action( 'save_post', $post_id, $post_after, true )mega.php:8894 -
Easy Language100+ installs
do_action( 'save_post', $post->ID, $post, true )app/Parser/BoldBuilder.php:246 -
Bulk Edit Events100+ installs
do_action( 'save_post', $post_id, get_post( $post_id ), true )modules/wp-sheet-editor/inc/api/helpers.php:946 -
Bulk Edit Easy Digital Downloads80+ installs
do_action( 'save_post', $post_id, get_post( $post_id ), true )modules/wp-sheet-editor/inc/api/helpers.php:946 -
AI Translator for Polylang60+ installs
do_action( 'save_post', $newId, $newPost, false )includes/class-polylai-translator-translator.php:676 -
ExploreXR60+ installs
do_action( 'save_post', $model_id, $model, false )admin/pages/edit-model-page.php:805 -
AI Translate: Free AI Translation, You Pick the Model50+ installs
do_action_ref_array( 'save_post', array($post_id, $cb, true) )includes/cache-invalidation.php:51 -
Depublish Posts30+ installs
do_action( 'save_post', $post->ID, $post, true )src/Post.php:93 -
CM Business Directory30+ installs
do_action( 'save_post' )backend/cm-business-directory-backend.php:61 -
CBIAStudio BlogFlow with AI20+ installs
do_action( 'save_post', $post_id, get_post($post_id), true )includes/integrations/yoast-legacy.php:152 -
Post ID Optimizer10+ installs
do_action( 'save_post', $post_ID, $post, $update )post-poidopt.php:3957 -
Fundrizer Lite10+ installs
do_action( 'save_post', $post_id, get_post($post_id), false )src/Setup.php:160 -
Dynamic Functionalities10+ installs
do_action( 'save_post', $post_id, $after, true )includes/features/class-link-health-editor.php:240 -
ProRank SEO10+ installs
do_action( 'save_post', $id, $after, true )includes/Core/Content/PostContentWriter.php:78 -
Stream Manager10+ installs
do_action( 'save_post', $post->ID, $post, true )includes/class-stream-manager-manager.php:95 -
DOT10+ installs
do_action( 'save_post', $post->ID, $post, true )includes/class-dot-press-admin-data.php:206 -
WPLink10+ installs
do_action( 'save_post', $this->post_id, $post, true )includes/class-wplink-bricks-handler.php:547 -
ElizaWPFewer than 10 installs
do_action( 'save_post', $post_id, $post, false )inc/class-rest-meta.php:73 -
CRAI Content UpdaterFewer than 10 installs
do_action( 'save_post', $original_id, $updated_post, true )includes/class-crai-updater.php:1367 -
Super Speedy Imports LiteFewer than 10 installs
do_action( 'save_post', $post_id, $post, (bool)$is_update )import-template-abstract.php:4421 -
WorkeeraFewer than 10 installs
do_action( 'save_post', $job_id, $post_obj, true )includes/user-dashboard/job-posting.php:1318 -
Your SEO SquadFewer than 10 installs
do_action( 'save_post', $id, $post, true )your-seo-squad.php:1708 -
PerfLocaleFewer than 10 installs
do_action( 'save_post', $post_id, $after, true )src/Translation/PostSlugCheck.php:143 -
Promo RevertFewer than 10 installs
do_action( 'save_post', $page_id, $after, true )includes/class-campaigns.php:858 -
CatalogFAQFewer than 10 installs
do_action( 'save_post', $id, $updated, true )src/Core.php:407 -
ZeopilotFewer than 10 installs
do_action( 'save_post', $id, $post, true )conditional-content.php:196 -
MATUQO Media ImporterFewer than 10 installs
do_action( 'save_post', $id, $new, true )includes/import.php:242 -
Quick Variable ProductsFewer than 10 installs
do_action( 'save_post', $product_id, $post, (bool) $update )includes/class-qvp-product.php:499 -
aiModelkaFewer than 10 installs
do_action( 'save_post', $product_id, $post, true )src/Media/class-product-caches.php:61 -
WingPilotFewer than 10 installs
do_action( 'save_post', $post_id, $post, true )includes/class-cache-purger.php:62 -
show.fm Podcast PlayerFewer than 10 installs
do_action( 'save_post', $post->ID, $updated, true )includes/class-migration-swap.php:167 -
IPS Order Media CleanupFewer than 10 installs
do_action( 'save_post', $object_id, $post, true )includes/classes/Media/Recovery/ReferenceJournal.php:65
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.