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

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

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