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.


Checks the nonce and capabilities.


Return Return


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();