dryan1144
Forum Replies Created
-
Forum: Plugins
In reply to: [JWT Authentication for WP REST API] API still publically availableDid you set the
permission_callback
parameter when registering your custom route? Set your permissions (logged in or role-based permissions) in that callback function and you should see the results you’re expecting.Forum: Plugins
In reply to: [Redirection] Redirect REST API endpointsIn our case it is necessary as we have external calls to various endpoints that need to support both versions of the taxonomy name, hence the redirect.
Forum: Plugins
In reply to: [Yoast SEO] Enable custom structured data schema for custom post typesIn case anyone else is struggling to get the
wpseo_schema_article_post_types
filter to output Article schema for their CPT, make sure you includeauthor
in thesupports
array when registering the post type.The charts are geo charts with a csv file data source. They render totally fine when they are output to a template statically using shortcodes.
But, the charts do not load if this same content is dynamically loaded via AJAX.
More specifically, I have several charts I’d like to show in a “tab” format on one page. If I insert all of the charts into the DOM at the same time, again using shortcodes, the charts will load but it is exceptionally slow. So I built a WP REST API endpoint that returns a specific chart’s output (using the same shortcode, but within an output buffer). When a tab is clicked, I make an AJAX call to grabs a specific chart’s output and then place it into the content area. At this point, I see the placeholder div of the requested chart, but the chart itself does not render
Forum: Plugins
In reply to: [Import Users from CSV] Add user_meta to import hookI was going to submit a PR but only giving me access to the original, not your fork. I would make the exact same change as this commit:
Which is now on line 444
6 monthly payments as stated in initial post, so $x collected upfront plus 5 monthly payments of $x.
Here is a screenshot of the plan settings: https://cl.ly/lwQA
What I don’t understand is why there are no errors for previously created plans almost identical to this. Seems like a new bug?
Following up to see if this could be looked at as a potential bug report as opposed to going through the paid forums. If not please let me know.
Forum: Plugins
In reply to: [Paid Memberships Pro - ConvertKit Integration] Membership expirationTo tack on to this – I think it would be more useful to have a tag added in CK if a membership cancels their membership.
Forum: Plugins
In reply to: [Paid Memberships Pro - ConvertKit Integration] Tag lists not updatingPerfect thanks
Forum: Plugins
In reply to: [WP Store Locator] boolean shortcode options not interpreted correctlyConfirming this same issue: attr=”0″ works but attr=”false” does not. Maybe docs just need to be updated to use 0’s and 1’s?
Thanks!
Forum: Plugins
In reply to: [WooCommerce] Shipping Address not showing on receipt or mailSame issue, no modifications to default template.
Forum: Plugins
In reply to: [Dynamic Featured Image] Latest build of 3.0.0 is not working for me…?Confirming that changing back to /wp-content/uploads fixed this issue for me.
Forum: Plugins
In reply to: [Dynamic Featured Image] Latest build of 3.0.0 is not working for me…?I’m thinking out loud here, but I’m using a custom directory for my uploads (e.g. /assets) instead of the default /wp-content/uploads.
Anyone else experiencing this issue doing the same? I have a hunch this is related.
Forum: Plugins
In reply to: [Dynamic Featured Image] Latest build of 3.0.0 is not working for me…?Same issue here when setting an image with v3 of the plugin. The value of the image isn’t getting passed through:
<input type="hidden" name="dfiFeatured[]" value="/wp-contentundefined,/wp-contentundefined" class="dfiImageHolder">
No console or debug errors.
Update: Is there a way to test if a user has at least one booking that is NOT a cancelled booking? This is the key.
Based on code from templates > my-bookings.php, there is a way to test if a user has a booking.
global $wpdb, $current_user, $EM_Notices, $EM_Person; if( is_user_logged_in() ): $EM_Person = new EM_Person( get_current_user_id() ); $EM_Bookings = $EM_Person->get_bookings(); $bookings_count = count($EM_Bookings->bookings); if($bookings_count > 0){ //Get events here in one query to speed things up $event_ids = array(); foreach($EM_Bookings as $EM_Booking) { $event_ids[] = $EM_Booking->event_id; } }
You can then use ‘$bookings_count > 0’ or whatever you need to test whether a user has a booking.
Another issue regarding cancellations comes up though. If a user cancels a booking they make through the My Bookings page, the system still counts this Cancelled booking as a booking. In other words, the $bookings_variable doesn’t go back to 0 if a user cancels a booking. It only goes to 0 when an admin deletes the booking completely through the admin.
So again:
Is there a way to test if a user has at least one booking that is NOT a cancelled booking? This is the key.