Skip to content

Commit

Permalink
Merge pull request #582 from razorpay/wc-section-limitation
Browse files Browse the repository at this point in the history
PO-273 added section restriction to load page
  • Loading branch information
abdulwahidsharief authored Jan 13, 2025
2 parents f505eea + a6d88e0 commit a8a7dec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion woo-razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,11 @@ public function init_form_fields()
}

//Affordability Widget Code
if (is_admin())
$currentSection = isset($_GET["section"]) ? sanitize_text_field($_GET["section"]) : "";

if (is_admin() and
(($currentSection === "razorpay") or
($currentSection === "affordability-widget")))
{
try
{
Expand Down

0 comments on commit a8a7dec

Please sign in to comment.