acf/json/eof_newline

acf/json/eof_newline

Hook Type: filter

See hook in core

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

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

  • /includes/local-json.php line 467
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
        }
     
        // Prepare for export and save the file.
        $post   = acf_prepare_internal_post_type_for_export( $post, $post_type );
        $result = file_put_contents( $file, acf_json_encode( $post ) . apply_filters( 'acf/json/eof_newline', PHP_EOL ) ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_file_put_contents -- potentially could run outside of admin.
     
        // Return true if bytes were written.
        return is_int( $result );
    }
     
    /**