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
f432c34e
Commit
f432c34e
authored
Jun 28, 2022
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rewrite check
parent
9d82e83b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
pms_woocommerce_registration_integration.php
classes/pms_woocommerce_registration_integration.php
+7
-2
No files found.
classes/pms_woocommerce_registration_integration.php
View file @
f432c34e
...
@@ -58,10 +58,15 @@ if(!class_exists('PmsWoocommerceRegistrationIntegration')) {
...
@@ -58,10 +58,15 @@ if(!class_exists('PmsWoocommerceRegistrationIntegration')) {
// Note: Re-save Permalinks or it will give 404 error
// Note: Re-save Permalinks or it will give 404 error
function
add_subscriptions_endpoint
()
function
add_subscriptions_endpoint
()
{
{
global
$wp_rewrite
;
sexhack_log
(
"SUBSCRIPTION ENDPOINT ADDED"
);
sexhack_log
(
"SUBSCRIPTION ENDPOINT ADDED"
);
add_rewrite_endpoint
(
'subscriptions'
,
EP_ROOT
|
EP_PAGES
);
add_rewrite_endpoint
(
'subscriptions'
,
EP_ROOT
|
EP_PAGES
);
//update_option('need_rewrite_flush', 1);
$rules
=
$wp_rewrite
->
wp_rewrite_rules
();
//flush_rewrite_rules();
if
(
!
array_key_exists
(
'(.?.+?)/subscriptions(/(.*))?/?$'
,
$rules
))
{
sexhack_log
(
"SUBSCRIPTION RULESS NEEDS REWRITE"
);
update_option
(
'need_rewrite_flush'
,
1
);
}
}
}
// Add new QUERY vars
// Add new QUERY vars
...
...
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