WP_Media_List_Table::ajax_user_can(): bool

In this article

Checks if the current user has permissions to upload files.

Return

bool Whether the user can upload files.

Source

public function ajax_user_can() {
	return current_user_can( 'upload_files' );
}

Changelog

VersionDescription
3.1.0Introduced.

User Contributed Notes

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