3.15.3
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
/**
|
||||
* Clear cache when ACF options page is updated.
|
||||
*
|
||||
* @since 2.10.7
|
||||
* @author Remy Perona
|
||||
*
|
||||
* @param string $post_id ACF options page ID is 'options'.
|
||||
*/
|
||||
function rocket_clear_cache_on_acf_options_save( $post_id ) {
|
||||
if ( 'options' === $post_id ) {
|
||||
rocket_clean_domain();
|
||||
}
|
||||
}
|
||||
add_action( 'acf/save_post', 'rocket_clear_cache_on_acf_options_save' );
|
||||
Reference in New Issue
Block a user