Plugin Directory

Changeset 2581920


Ignore:
Timestamp:
08/12/2021 09:19:11 AM (5 years ago)
Author:
accesstype
Message:

send loginPageUrl in subscription plans listing function

Location:
accesstype/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • accesstype/trunk/includes/shortcodes.php

    r2579245 r2581920  
    5454    $plan_heading = get_option('accesstype-plan-heading');
    5555    $plan_sub_heading = get_option('accesstype-plan-sub-heading');
     56    $login_page_url = esc_url( wp_login_url( get_permalink() ) );
    5657
    5758    $results = '';
     
    6465      var planHeading = '" . $plan_heading . "';
    6566      var planSubHeading = '" . $plan_sub_heading . "';
     67      var loginPageUrl = '" . $login_page_url . "';
     68
    6669      const urlParams = new URLSearchParams(window.location.search);
    6770      const returnUrl = urlParams.get('return-url');
     
    7275        },
    7376        returnUrl: returnUrl,
     77        loginPageUrl: loginPageUrl,
    7478        custom: {
    7579          styles: {
  • accesstype/trunk/readme.txt

    r2579269 r2581920  
    44Tested up to: 5.8
    55Requires PHP: 5.6.20
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.