HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux srvntsweb01 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: admntserv (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/credoplanning.com/wp-content/plugins/case-theme-user/inc/class.hook.php
<?php
/**
 * Define User-Press hook
 *
 * @author Jax
 **/
add_action( 'ct-user-form/form/login/after', 'up_hook_login_form_recaptcha' );

/**
 * Providing an implementation for 'up_hook_login_form_recaptcha'
 * to add Google recatcha to login form
 *
 * @author Jax
 */
function up_hook_login_form_recaptcha() {
    global $user_press;
    $user_press['template'] = (isset($user_press['template']) && $user_press['template'] != '')? $user_press['template'] : 'default';
    up_get_template_part( "{$user_press['template']}/recaptcha" );
}