acf/json/save_file_name, $key . .json, $post, $load_path

acf/json/save_file_name, $key . .json, $post, $load_path

Hook Type: filter

See hook in core

Displaying hooks found in version: advanced-custom-fields.6.8.6

apply_filters('acf/json/save_file_name, $key . .json, $post, $load_path') is found 1 times:

  • /includes/local-json.php line 484
    			 * @param string $filename  The default filename.
    			 * @param array  $post      The main post array for the item being saved.
    			 * @param string $load_path The path that the item was loaded from.
    			 */
    			$filename = apply_filters( 'acf/json/save_file_name', $key . '.json', $post, $load_path );
    
    			if ( ! is_string( $filename ) ) {
    				return false;
    			}
    
    			$filename = sanitize_file_name( $filename );