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.5

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

  • /includes/local-json.php line 392
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    * @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 );