PluginProbe ʕ •ᴥ•ʔ
WP 2FA – Two-factor authentication for WordPress / 2.8.0
WP 2FA – Two-factor authentication for WordPress v2.8.0
4.0.0 1.7.1 2.0.0 2.0.1 2.1.0 2.2.0 2.2.1 2.3.0 2.4.0 2.4.1 2.4.2 2.5.0 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.7.0 2.8.0 2.9.0 2.9.1 2.9.2 2.9.3 3.0.0 3.0.1 3.1.0 3.1.1 3.1.1.2 trunk 1.2.0 1.3.0 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.6.2 1.7.0
wp-2fa / includes / classes / Admin / Helpers / class-php-helper.php
wp-2fa / includes / classes / Admin / Helpers Last commit date
class-ajax-helper.php 1 year ago class-classes-helper.php 1 year ago class-file-writer.php 1 year ago class-methods-helper.php 1 year ago class-php-helper.php 1 year ago class-user-helper.php 1 year ago class-wp-helper.php 1 year ago index.php 1 year ago
class-php-helper.php
47 lines
1 <?php
2 /**
3 * Responsible for the User's operations
4 *
5 * @package wp2fa
6 * @subpackage helpers
7 * @since 2.4.0
8 * @copyright 2024 Melapress
9 * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
10 * @link https://wordpress.org/plugins/wp-2fa/
11 */
12
13 namespace WP2FA\Admin\Helpers;
14
15 defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
16
17 /**
18 * User's settings class
19 */
20 if ( ! class_exists( '\WP2FA\Admin\Helpers\PHP_Helper' ) ) {
21
22 /**
23 * All the user related settings must go trough this class.
24 *
25 * @since 2.4.0
26 */
27 class PHP_Helper {
28
29 /**
30 * Checks if given function is callable (exists) or not
31 *
32 * @param string $function_name - The name of the function to check.
33 *
34 * @return boolean
35 *
36 * @since 2.4.0
37 */
38 public static function is_callable( string $function_name ): bool {
39 if ( ! is_callable( $function_name ) ) {
40 return false;
41 }
42
43 return true;
44 }
45 }
46 }
47