acf/json/save_file_name

acf/json/save_file_name

Hook Type: filter

See hook in core

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

apply_filters('acf/json/save_file_name') is found 1 times:

  • /includes/local-json.php line 392
    			 * @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 );