acf/json/eof_newline

acf/json/eof_newline

Hook Type: filter

See hook in core

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

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

  • /includes/local-json.php line 572
    			}
    
    			// 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.
    
    			if ( ! is_int( $result ) && $has_existing_file ) {
    				$this->record_save_file_failure();
    			}
    
    			// Return true if bytes were written.