bp_settings_personal_data_export_exists( WP_User_Request $request )

Check if the generated data export file still exists or not.


Parameters Parameters

$request

(WP_User_Request) (Required) User request object.


Top ↑

Return Return

(bool)


Source Source

File: bp-settings/bp-settings-functions.php

function bp_settings_personal_data_export_exists( WP_User_Request $request ) {
	$file = get_post_meta( $request->ID, '_export_file_path', true );
	if ( file_exists( $file ) ) {
		return true;
	} else {
		return false;
	}
}

Top ↑

Changelog Changelog

Changelog
Version Description
4.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.