PATH:
home
/
letacommog
/
gdiags.fr
/
wp-content
/
plugins
/
google-site-kit
/
includes
/
Core
/
Modules
<?php /** * Trait Google\Site_Kit\Core\Modules\Module_With_Scopes_Trait * * @package Google\Site_Kit * @copyright 2021 Google LLC * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * @link https://sitekit.withgoogle.com */ namespace Google\Site_Kit\Core\Modules; /** * Trait for a module that requires Google OAuth scopes. * * @since 1.0.0 * @access private * @ignore */ trait Module_With_Scopes_Trait { /** * Registers the hook to add required scopes. * * @since 1.0.0 */ private function register_scopes_hook() { add_filter( 'googlesitekit_auth_scopes', function( array $scopes ) { return array_merge( $scopes, $this->get_scopes() ); } ); } }
[+]
..
[-] Module_With_Assets_Trait.php
[edit]
[-] Module_With_Scopes_Trait.php
[edit]
[-] Module_With_Owner_Trait.php
[edit]
[+]
Tags
[-] Module_With_Screen_Trait.php
[edit]
[-] Module_With_Screen.php
[edit]
[-] Module_With_Settings_Trait.php
[edit]
[-] Module_Registry.php
[edit]
[-] Module_With_Assets.php
[edit]
[-] Module.php
[edit]
[-] Modules.php
[edit]
[-] Module_With_Settings.php
[edit]
[-] Module_With_Debug_Fields.php
[edit]
[-] Module_With_Scopes.php
[edit]
[-] Module_With_Owner.php
[edit]
[-] Module_Settings.php
[edit]