GRAYBYTE WORDPRESS FILE MANAGER3948

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/wpforms-lite/includes/functions/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/wp-content/plugins/wpforms-lite/includes/functions//providers.php
<?php
/**
 * Helper functions to work with Providers API.
 *
 * @since 1.8.0
 */

/**
 * Get an array of all the active provider addons.
 *
 * @since 1.4.7
 *
 * @return array
 */
function wpforms_get_providers_available() {

	return (array) apply_filters( 'wpforms_providers_available', [] );
}

/**
 * Get options for all providers.
 *
 * @since 1.4.7
 *
 * @param string $provider Define a single provider to get options for this one only.
 *
 * @return array
 */
function wpforms_get_providers_options( $provider = '' ) {

	$options  = get_option( 'wpforms_providers', [] );
	$provider = sanitize_key( $provider );
	$data     = $options;

	if ( ! empty( $provider ) ) {
		$data = $options[ $provider ] ?? [];
	}

	return (array) apply_filters( 'wpforms_get_providers_options', $data, $provider );
}

/**
 * Update options for all providers.
 *
 * @since 1.4.7
 *
 * @param string      $provider Provider slug.
 * @param array|false $options  If false is passed - provider will be removed. Otherwise saved.
 * @param string      $key      Optional key to identify which connection to update. If empty - generate a new one.
 */
function wpforms_update_providers_options( $provider, $options, $key = '' ) {

	$providers = wpforms_get_providers_options();
	$id        = ! empty( $key ) ? $key : uniqid();
	$provider  = sanitize_key( $provider );

	if ( $options ) {
		$providers[ $provider ][ $id ] = (array) $options;
	} else {
		unset( $providers[ $provider ] );
	}

	/**
	 * A collection of service providers used for dependency injection or service registration
	 * within the application.
	 *
	 * @since 1.9.6
	 *
	 * @param array  $providers List of all registered providers.
	 * @param string $provider  Provider slug.
	 * @param array  $options   Provider options data. If false - provider will be removed.
	 * @param string $id        Provider connection ID.
	 */
	$providers = (array) apply_filters( 'wpforms_update_providers_options', $providers, $provider, $options, $id );

	update_option( 'wpforms_providers', $providers );
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:21
inteuuod / inteuuod
0755
.htaccess
0.41 KB
July 10 2025 04:32:21
inteuuod / inteuuod
0644
access.php
10.478 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
builder.php
1.377 KB
June 17 2025 13:49:02
inteuuod / inteuuod
0644
checks.php
15.965 KB
June 17 2025 13:49:02
inteuuod / inteuuod
0644
colors.php
3.972 KB
November 28 2023 16:59:36
inteuuod / inteuuod
0644
data-presets.php
19.031 KB
February 16 2023 18:36:38
inteuuod / inteuuod
0644
date-time.php
2.824 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
debug.php
5.229 KB
September 26 2024 15:36:36
inteuuod / inteuuod
0644
education.php
2.894 KB
June 17 2025 13:49:02
inteuuod / inteuuod
0644
escape-sanitize.php
13.899 KB
January 28 2025 17:46:12
inteuuod / inteuuod
0644
filesystem-media.php
6.6 KB
April 24 2025 14:53:30
inteuuod / inteuuod
0644
form-fields.php
16.983 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
forms.php
13.321 KB
April 24 2025 14:53:30
inteuuod / inteuuod
0644
list.php
6.875 KB
June 13 2024 16:24:36
inteuuod / inteuuod
0644
payments.php
21.876 KB
April 24 2025 14:53:30
inteuuod / inteuuod
0644
plugins.php
2.375 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
privacy.php
2.516 KB
February 27 2025 17:40:00
inteuuod / inteuuod
0644
providers.php
1.992 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
utilities.php
8.538 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF