Skip to content

Added filter for content restriction rule for other plugins and modules#1181

Closed
saurab018 wants to merge 3 commits intoui-polishing-sidfrom
UR-4205-filter-for-content-restriction-rule-not-working-for-shop-page
Closed

Added filter for content restriction rule for other plugins and modules#1181
saurab018 wants to merge 3 commits intoui-polishing-sidfrom
UR-4205-filter-for-content-restriction-rule-not-working-for-shop-page

Conversation

@saurab018
Copy link
Copy Markdown
Contributor

@saurab018 saurab018 commented Feb 24, 2026

All Submissions:

Changes proposed in this Pull Request:

Closes # .

How to test the changes in this Pull Request:

Types of changes:

  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (modification of the currently available functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you successfully ran tests with your changes locally?
  • Have you updated the documentation accordingly?

Changelog entry

Added filter for content restriction rule for other plugins and modules

@saurab018 saurab018 self-assigned this Feb 24, 2026
@saurab018 saurab018 requested a review from iamprazol February 24, 2026 04:34
@SidTGV SidTGV force-pushed the master branch 8 times, most recently from cf5ed8c to a40238e Compare February 25, 2026 04:44
@y000yal y000yal changed the base branch from master to ui-polishing-sid March 13, 2026 02:06
Copy link
Copy Markdown
Contributor

@y000yal y000yal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the comments.

Comment thread modules/functions-ur-modules.php Outdated
exit;

} elseif ( 'redirect_to_local_page' === $action_type ) {
$page_id = ! empty( $access_rule['actions'][0]['local_page'] ) ? absint( $access_rule['actions'][0]['local_page'] ) : null;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the page is the shop page itself, it will go to infinite loop, Please verify and add countermeasures for it here.

@saurab018 saurab018 force-pushed the UR-4205-filter-for-content-restriction-rule-not-working-for-shop-page branch from 27a8cf8 to de414cf Compare March 16, 2026 03:19
@saurab018
Copy link
Copy Markdown
Contributor Author

Showed more changes, replicated and fixed issue in #1252

@saurab018 saurab018 closed this Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants