Файловый менеджер - Редактировать - /home/avadvi5/public_html/fcolliver.com/wp-content/plugins/wpforms-geolocation/src/Admin/Settings/GooglePlaces.php
Ðазад
<?php namespace WPFormsGeolocation\Admin\Settings; /** * Class GooglePlaces. * * @since 2.0.0 */ class GooglePlaces { /** * Provider slug. * * @since 2.0.0 */ const SLUG = 'google-places'; /** * Init hooks. * * @since 2.0.0 */ public function hooks() { add_filter( 'wpforms_geolocation_admin_settings_settings_get_providers', [ $this, 'register_provider' ] ); add_filter( 'wpforms_geolocation_admin_settings_settings_get_provider_options_' . self::SLUG, [ $this, 'settings' ] ); } /** * Register providers. * * @since 2.0.0 * * @param array $providers List of providers. * * @return array */ public function register_provider( $providers ) { $providers[ self::SLUG ] = esc_html__( 'Google Places', 'wpforms-geolocation' ); return $providers; } /** * Register settings. * * @since 2.0.0 * * @return array */ public function settings() { return [ 'api-key' => [ 'type' => 'text', 'id' => 'api-key', 'name' => esc_html__( 'API Key', 'wpforms-geolocation' ), 'desc' => esc_html__( 'Paste your API Key to connect to Google Places.', 'wpforms-geolocation' ), ], ]; } }
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка