Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.


Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Populate_From_Query::is_authorized()

Checks the nonce and capabilities.

Contents


Return Return

(bool)


Source Source

File: src/core/classes/class-populate-from-query.php

	private static function is_authorized() {
		if ( ! wp_verify_nonce( $_GET['nonce'], self::$nonce ) ) {
			throw new \Exception( 'Invalid nonce.' );
		}
		// Use the save_setting_permissings function from the recipe class to check required capabilities.
		return self::$recipe->save_settings_permissions();
	}