{"id":19248233,"url":"https://github.com/fullstack-dev3/wp-imember360-login","last_synced_at":"2025-02-23T16:14:50.757Z","repository":{"id":136490986,"uuid":"516632508","full_name":"fullstack-dev3/WP-iMember360-Login","owner":"fullstack-dev3","description":"Login/Logout Hook for iMember360 Wordpress plugin","archived":false,"fork":false,"pushed_at":"2022-07-22T06:14:45.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-05T05:26:17.622Z","etag":null,"topics":["customization","imember360","login-logout","wordpress-hooks","wordpress-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fullstack-dev3.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-07-22T06:12:54.000Z","updated_at":"2023-10-24T15:31:16.000Z","dependencies_parsed_at":"2023-11-06T22:04:07.604Z","dependency_job_id":"a445fce6-b993-4511-b644-ae4e32f5d5a6","html_url":"https://github.com/fullstack-dev3/WP-iMember360-Login","commit_stats":null,"previous_names":["fullstack-dev3/wp-imember360-login"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstack-dev3%2FWP-iMember360-Login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstack-dev3%2FWP-iMember360-Login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstack-dev3%2FWP-iMember360-Login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fullstack-dev3%2FWP-iMember360-Login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fullstack-dev3","download_url":"https://codeload.github.com/fullstack-dev3/WP-iMember360-Login/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240339583,"owners_count":19785957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["customization","imember360","login-logout","wordpress-hooks","wordpress-plugin"],"created_at":"2024-11-09T18:07:05.589Z","updated_at":"2025-02-23T16:14:50.739Z","avatar_url":"https://github.com/fullstack-dev3.png","language":"PHP","readme":"# WP-iMember360-Login\n\nThis repo introduces the hooks to login/logout in iMember360 Wordpress plugin.\n\n## i4w_authenticated_login\n\n### Usage:\nThis hook allows you to run your own code immediately after a user (either a local or an Infusionsoft-based subscriber) has authenticated during the login process.\n\n### Parameters:\niMember360 will pass the following parameters to your action function:\n\n#### $wp_user\nis the standard WordPress user object for the person who just logged in.\n#### $contact\nis an array containing the contact record fields for the person who just logged in.\n\n\n```bash\n\u003c?php\nfunction my_i4w_authenticated_login($wp_user, $contact) {\n  \t// Sending an Email to logged in user\n\t$to = $wp_user-\u003eemail;\n\n\t$subject = 'Login Notification';\n\n\t$body = 'Dear ' . $wp_user-\u003euser_niceaname . '.\\n';\n\t$body .= 'You are logged in successfully.\\n';\n\n\t$headers = array('Content-Type: text/html; charset=UTF-8');\n\t \n\twp_mail( $to, $subject, $body, $headers );\n\n\t// Updating contact record to reflect the login\n\t$contact-\u003ei4w_db_LastUpdated = date('Y-m-d H:i:s');\n}\nadd_action('i4w_authenticated_login', 'my_i4w_authenticated_login',10,2);\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullstack-dev3%2Fwp-imember360-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffullstack-dev3%2Fwp-imember360-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffullstack-dev3%2Fwp-imember360-login/lists"}