Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WordPress_SexHackMe_Plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
WordPress_SexHackMe_Plugin
Commits
124a77f7
Commit
124a77f7
authored
Jul 09, 2022
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix indentation
parent
f5dbdd47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
pms_woocommerce_registration_integration.php
classes/pms_woocommerce_registration_integration.php
+20
-20
No files found.
classes/pms_woocommerce_registration_integration.php
View file @
124a77f7
...
@@ -82,28 +82,28 @@ if(!class_exists('PmsWoocommerceRegistrationIntegration')) {
...
@@ -82,28 +82,28 @@ if(!class_exists('PmsWoocommerceRegistrationIntegration')) {
add_filter
(
'query_vars'
,
array
(
$this
,
'subscriptions_query_vars'
),
0
);
add_filter
(
'query_vars'
,
array
(
$this
,
'subscriptions_query_vars'
),
0
);
// Insert the new endpoint into the My Account menu
// Insert the new endpoint into the My Account menu
add_filter
(
'woocommerce_account_menu_items'
,
array
(
$this
,
'add_subscriptions_link_my_account'
)
);
add_filter
(
'woocommerce_account_menu_items'
,
array
(
$this
,
'add_subscriptions_link_my_account'
)
);
/* Add content to the new tab
/* Add content to the new tab
* NOTE: add_action must follow 'woocommerce_account_{your-endpoint-slug}_endpoint' format */
* NOTE: add_action must follow 'woocommerce_account_{your-endpoint-slug}_endpoint' format */
add_action
(
'woocommerce_account_subscriptions_endpoint'
,
array
(
$this
,
'subscriptions_content'
),
50
,
6
);
add_action
(
'woocommerce_account_subscriptions_endpoint'
,
array
(
$this
,
'subscriptions_content'
),
50
,
6
);
/* Inject random generate pass as we don't send it from the registration form */
/* Inject random generate pass as we don't send it from the registration form */
// XXX BUG! we should initialize this when is the right page and the right POST,
// XXX BUG! we should initialize this when is the right page and the right POST,
// don't be a dick. Don't do it on every fucking page.
// don't be a dick. Don't do it on every fucking page.
// if you look hard enought like really really hard...
// if you look hard enought like really really hard...
// you find a dick pretty much
// you find a dick pretty much
// everywhere
// everywhere
// if you look hard
// if you look hard
// enought
// enought
// like really
// like really
// really hard
// really hard
// you find a dick
// you find a dick
// pretty much
// pretty much
// everywhere
// everywhere
add_action
(
'init'
,
array
(
$this
,
'gen_random_pwd'
),
5
);
// This need to happen before PMS detect the form at "10" sequence firing
add_action
(
'init'
,
array
(
$this
,
'gen_random_pwd'
),
5
);
// This need to happen before PMS detect the form at "10" sequence firing
// Sending email with link to set user password
// Sending email with link to set user password
add_action
(
"pms_register_form_after_create_user"
,
array
(
$this
,
"send_register_email_reset_password"
)
);
add_action
(
"pms_register_form_after_create_user"
,
array
(
$this
,
"send_register_email_reset_password"
)
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment