bencoates
Forum Replies Created
-
Forum: Plugins
In reply to: [User Switching] Block Switching to Other AdminsI’ve approached this slightly differently …
My preference would be to expose the switching URL as a filter …
/** * Returns the nonce-secured URL needed to switch to a given user ID. * * @param WP_User $user The user to be switched to. * @return string The required URL. */ public static function switch_to_url( WP_User $user ) { return apply_filters( 'switch_to_url', wp_nonce_url( add_query_arg( array( 'action' => 'switch_to_user', 'user_id' => $user->ID, 'nr' => 1, ), wp_login_url() ), "switch_to_user_{$user->ID}" ), $user ); }
Then you can just do
add_filter( 'switch_to_url', 'my_switch_to_url', 9, 2 ); function my_switch_to_url($url, $user) { //your conditions here return $url; }
- This reply was modified 2 years, 1 month ago by bencoates.
Forum: Plugins
In reply to: [Video Conferencing with Zoom] Embed Zoom MeetingGreat work Deepen, thank you so much ??
Forum: Plugins
In reply to: [Video Conferencing with Zoom] Embed Zoom MeetingHi Deepen
Your plugin is amazing and is helping so many people at this time. Thank you!
It seeems that – whilst you’ve updated the plugin to take advantage of webSDK 1.7.5, the plugin is applying stale version numbers to your JS includes (including the Zoom SDK)
Without clearing the cache or hard-refreshing the JS file, even 3.2.2 is loading ver=1.0.0 which for me is SDK 1.7.2, causing errors when joining via the browser.
Is there a chance your plugin could be updated so that, when your plugin version changes, it forces browsers to fetch the new JS file from your includes instead of the cached version?
Thank you so much
In addition to this, I’ve now used a “modify subscription” button to downgrade the user back to the 3.00 GBP plan, and I’d expected this to take effect on the month anniversary of the previous subscription (as the user has paid 9.00 GBP already so he should still have access until the period is up) – what’s now happened is the user is back to Level 1 within WordPress, meaning he’s lost his level 2 access already.
Hopefully someone can point me in the right direction
Thanks in advance
Ok. I figured it out. I just don’t give the subscription buttons as an option until the user has registered, then they can choose their options.
I have another issue though, and that’s when a user upgrades to a new level, by using the paypal buttons, in my sandbox account, the user is now subscribed to BOTH plans concurrently. I thought the plugin was supposed to terminate the previous subscription before starting the upgraded one?