WordPress action hook
acf/save_post
Fired by 43 WordPress plugins, running on 2.1M+ sites between them.
How to use acf/save_post
It's an action: your callback runs at that point and receives 1 argument. Nothing needs to be returned.
Add this to your theme's functions.php or a small custom plugin:
add_action( 'acf/save_post', function( $post_id ) {
// Your code runs here.
}, 10, 1 );Argument names come from Advanced Custom Fields (ACF®)'s source. Other plugins may pass different values: check the call in the plugin you're targeting below.
43 plugins that fire acf/save_post
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Advanced Custom Fields (ACF®)2+ million installs
do_action( 'acf/save_post', $post_id )includes/acf-form-functions.php:152 -
Secure Custom Fields100,000+ installs
do_action( 'acf/save_post', $post_id )includes/acf-form-functions.php:142 -
Mapster WP Maps3,000+ installs
do_action( 'acf/save_post', $post_id )includes/acf/includes/acf-form-functions.php:152 -
WPScreens300+ installs
do_action( 'acf/save_post', $post_id )includes/acf/includes/acf-form-functions.php:136 -
MapifyLite (by MapifyPro)200+ installs
do_action( 'acf/save_post', $post_id )lib/advanced-custom-fields/includes/acf-form-functions.php:143 -
Advanced Custom Fields: Widget100+ installs
do_action( 'acf/save_post', 'options' )includes/class-acf-widget-plugin.php:32 -
WP Related Posts and Products (WRI)100+ installs
do_action( 'acf/save_post', $post_id )advanced-custom-fields/includes/acf-form-functions.php:136 -
Flexblocks80+ installs
do_action( 'acf/save_post', $post_id )inc/acf/includes/acf-form-functions.php:143 -
Dooodl50+ installs
do_action( 'acf/save_post', $post_id )includes/libs/advanced-custom-fields/core/api.php:1097 -
OneDS Start Package40+ installs
do_action( 'acf/save_post', $post_id )includes/acf/includes/acf-form-functions.php:143 -
Social Influencer Links30+ installs
do_action( 'acf/save_post', $post_id )lib/acf/includes/acf-form-functions.php:136 -
Fancy Grid Portfolio20+ installs
do_action( 'acf/save_post', $post_id )lib/advanced-custom-fields/core/api.php:1002 -
Simple Content Adder20+ installs
do_action( 'acf/save_post', $post_id )lib/advanced-custom-fields/core/api.php:1097 -
TSA Commerce20+ installs
do_action( 'acf/save_post', $post_id )vendors/acf/core/api.php:1097 -
Tuxedo Importer20+ installs
do_action( 'acf/save_post', $post_id )includes/acf/includes/acf-form-functions.php:141 -
Accessibility Statement20+ installs
do_action( 'acf/save_post', $post_id )includes/acf/includes/acf-form-functions.php:141 -
LogicalDOC WordPress Explorer10+ installs
do_action( 'acf/save_post', $post_id )advanced-custom-fields/core/api.php:1097 -
Simply Documents10+ installs
do_action( 'acf/save_post', $post_id )lib/advanced-custom-fields/core/api.php:1097 -
Church Options10+ installs
do_action( 'acf/save_post', $post_id )lib/advanced-custom-fields/core/api.php:1097 -
FloristPress for Woo10+ installs
do_action( 'acf/save_post', $post_id )lib/acf/includes/acf-form-functions.php:143 -
Rexpansive Builder10+ installs
do_action( 'acf/save_post', $post_id )admin/lib/acf/advanced-custom-fields/includes/acf-form-functions.php:141 -
Schedule Tweets10+ installs
do_action( 'acf/save_post', $post_id )assets/plugins/acf/includes/input.php:516 -
Megabits Control Gastos10+ installs
do_action( 'acf/save_post', $post_id )includes/acf/includes/acf-form-functions.php:143 -
WoWpi Guild10+ installs
do_action( 'acf/save_post', $post_id )includes/acf/includes/acf-form-functions.php:136 -
Proshots For WooCommerce10+ installs
do_action( 'acf/save_post', $post_id )includes/acf/includes/acf-form-functions.php:136 -
Important Dates Dashboard Widget10+ installs
do_action( 'acf/save_post', $post_id )includes/acf/includes/acf-form-functions.php:141 -
Coronavirus (COVID-19) Live Update Popup10+ installs
do_action( 'acf/save_post', $post_id )includes/acf/includes/acf-form-functions.php:136 -
Realty Pack Core10+ installs
do_action( 'acf/save_post', $post_id )app/acf/includes/acf-form-functions.php:136 -
Mufasa 🦁 Slider10+ installs
do_action( 'acf/save_post', $post_id )includes/acf/includes/acf-form-functions.php:136 -
Quick RecommendFewer than 10 installs
do_action( 'acf/save_post', $post_id )lib/advanced-custom-fields/core/api.php:1097 -
ASD Feature MapsFewer than 10 installs
do_action( 'acf/save_post', $post_id )includes/advanced-custom-fields/core/api.php:1097 -
Flaunt Your ClientsFewer than 10 installs
do_action( 'acf/save_post', $post_id )includes/advanced-custom-fields/core/api.php:1088 -
Simple KMDG Resource CenterFewer than 10 installs
do_action( 'acf/save_post', $post_id )includes/advanced-custom-fields/includes/acf-form-functions.php:136 -
Admin Notes WPFewer than 10 installs
do_action( 'acf/save_post', $post_id )includes/acf/advanced-custom-fields/includes/acf-form-functions.php:136 -
Contact Form 7 AnalyticsFewer than 10 installs
do_action( 'acf/save_post', $post_id )acf/core/input.php:512 -
Ninety in NinetyFewer than 10 installs
do_action( 'acf/save_post', $post_id )inc/acf/includes/acf-form-functions.php:136 -
Admin User ControlFewer than 10 installs
do_action( 'acf/save_post', $post_id )includes/acf/includes/acf-form-functions.php:136 -
Work Time AllocatorFewer than 10 installs
do_action( 'acf/save_post', $post_id )lib/advanced-custom-fields/includes/acf-form-functions.php:136 -
House AdsFewer than 10 installs
do_action( 'acf/save_post', $post_id )lib/acf/includes/form.php:159 -
NavThemes Gutenberg BlocksFewer than 10 installs
do_action( 'acf/save_post', $post_id )admin/includes/form.php:159 -
NavThemes Employee RatingsFewer than 10 installs
do_action( 'acf/save_post', $post_id )admin/includes/form.php:159 -
Dashboard Feeds Dashboard WidgetFewer than 10 installs
do_action( 'acf/save_post', $post_id )includes/acf/includes/acf-form-functions.php:141 -
Repeat EventsFewer than 10 installs
do_action( 'acf/save_post', $post_id )includes/acf/includes/acf-form-functions.php:136
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.