Server IP : 104.21.14.103 / Your IP : 18.217.43.228 Web Server : LiteSpeed System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : giankuin ( 1871) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/passwordless-login/integrations/ |
Upload File : |
<?php namespace iThemesSecurity\PasswordlessLogin\Integrations; use iThemesSecurity\PasswordlessLogin\Integration\Integration; class LifterLMS implements Integration { public function get_name() { return 'LifterLMS'; } public function get_slug() { return 'lifter-lms'; } public function run() { add_filter( 'lifterlms_person_login_fields', [ $this, 'include_passwordless_login_prompt_in_login_fields' ], 20 ); } /** * Include a field for the passwordless login prompt in the LLMS login fields list. * * We mark our field as first in the list of fields. * * @param array $fields * * @return array */ public function include_passwordless_login_prompt_in_login_fields( $fields ) { array_unshift( $fields, [ 'columns' => 12, 'id' => 'itsec_llms_passwordless_prompt', 'type' => 'html', 'description' => \ITSEC_Passwordless_Login_Utilities::render_modal_link(), ] ); return $fields; } }