REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 1.05 KB
Close
//home/nshryvcy/radiantskinclinics.org/wp-content/plugins/wpforms-lite/src/Integrations/WPCode/RegisterLibrary.php
Text
Base64
<?php namespace WPForms\Integrations\WPCode; use WPForms\Integrations\IntegrationInterface; /** * Register the WPCode library username. * * @since 1.8.5 */ class RegisterLibrary implements IntegrationInterface { /** * Determine if the class is allowed to load. * * @since 1.8.5 * * @return bool * @noinspection PhpMissingReturnTypeInspection * @noinspection ReturnTypeCanBeDeclaredInspection */ public function allow_load() { return is_admin(); } /** * Load the class. * * @since 1.8.5 */ public function load() { $this->hooks(); } /** * Hooks. * * @since 1.8.5 */ private function hooks() { add_action( 'plugins_loaded', [ $this, 'wpforms_register_wpcode_username' ], 20 ); } /** * Register a WPCode Library username so that it's loaded in the library inside the WPCode plugin. * * @since 1.8.5 */ public function wpforms_register_wpcode_username() { if ( ! function_exists( 'wpcode_register_library_username' ) ) { return; } wpcode_register_library_username( 'wpforms', 'WPForms' ); } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
RegisterLibrary.php
1.05 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
WPCode.php
4.85 KB
lrw-r--r--
2024-09-26 15:36:36
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).