REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.38 KB
Close
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/wpforms-lite/includes/functions/plugins.php
Text
Base64
<?php /** * Helper functions to perform various plugins and addons related actions. * * @since 1.8.2.2 */ use WPForms\Requirements\Requirements; /** * Check if addon met requirements. * * @since 1.8.2.2 * * @param array $requirements Addon requirements. * * @return bool */ function wpforms_requirements( array $requirements ): bool { return Requirements::get_instance()->validate( $requirements ); } /** * Determine if an addon is active and passed all requirements. * * @since 1.9.2 * * @param string $addon_slug Addon slug without `wpforms-` prefix. * * @return bool */ function wpforms_is_addon_initialized( string $addon_slug ): bool { $basename = sprintf( 'wpforms-%1$s/wpforms-%1$s.php', $addon_slug ); if ( is_multisite() ) { $active_plugins = (array) get_option( 'active_plugins', [] ); if ( in_array( $basename, $active_plugins, true ) ) { return true; } } return Requirements::get_instance()->is_validated( $basename ); } /** * Check addon requirements and activate addon or plugin. * * @since 1.8.4 * @since 1.9.2 Keep addons active even if they don't meet requirements. * * @param string $plugin Path to the plugin file relative to the plugins' directory. * * @return null|WP_Error Null on success, WP_Error on invalid file. */ function wpforms_activate_plugin( string $plugin ) { $activate = activate_plugin( $plugin ); if ( is_wp_error( $activate ) ) { return $activate; } $requirements = Requirements::get_instance(); if ( $requirements->is_validated( $plugin ) ) { return null; } return new WP_Error( 'wpforms_addon_incompatible', $requirements->get_notice( $plugin ) ); } /** * Compares two "PHP-standardized" version number strings. * * Removes any "-RCn", "-beta" from version numbers first. * * @since 1.9.4 * * @param string $version1 Version number. * @param string $version2 Version number. * @param string $operator Comparison operator. * * @return bool */ function wpforms_version_compare( $version1, $version2, $operator ): bool { // If the version is not a string, return false. if ( ! is_string( $version1 ) || ! is_string( $version2 ) ) { return false; } // Strip dash and anything after it. $clean_version_number = function ( $version ) { return preg_replace( '/-.+/', '', $version ); }; return version_compare( $clean_version_number( $version1 ), $clean_version_number( $version2 ), $operator ); }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 18
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
access.php
10.84 KB
lrw-r--r--
2026-05-28 15:16:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
builder.php
1.38 KB
lrw-r--r--
2025-06-17 13:49:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
checks.php
15.89 KB
lrw-r--r--
2026-03-19 16:20:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
colors.php
3.97 KB
lrw-r--r--
2023-11-28 16:59:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
data-presets.php
19.13 KB
lrw-r--r--
2025-11-06 19:10:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
date-time.php
2.82 KB
lrw-r--r--
2025-06-05 16:54:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
debug.php
5.25 KB
lrw-r--r--
2025-08-11 13:38:06
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
education.php
2.89 KB
lrw-r--r--
2025-06-17 13:49:02
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
escape-sanitize.php
18.00 KB
lrw-r--r--
2026-06-03 16:18:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
filesystem-media.php
8.79 KB
lrw-r--r--
2026-06-03 16:18:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
form-fields.php
19.20 KB
lrw-r--r--
2026-03-19 16:20:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
forms.php
14.56 KB
lrw-r--r--
2026-05-28 15:16:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
list.php
6.88 KB
lrw-r--r--
2024-06-13 16:24:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
payments.php
21.76 KB
lrw-r--r--
2025-07-31 14:13:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
plugins.php
2.38 KB
lrw-r--r--
2025-06-05 16:54:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
privacy.php
2.52 KB
lrw-r--r--
2025-02-27 17:40:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
providers.php
1.99 KB
lrw-r--r--
2025-06-05 16:54:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utilities.php
10.43 KB
lrw-r--r--
2026-01-29 20:00:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).