Saltar navegación

[Resuelto] Pagination in Views Breaking WooCommerce Membership Restriction Shortcodes

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:

I have enabled AJAX pagination in a View and when viewing the second or subsequent “pages,” my WooCommerce Memberships restriction shortcodes do not work.

Solution:

The Views AJAX pagination is using WordPress file wp-admin/admin-ajax.php to load data, please make sure your "WooCommerce Memberships restriction shortcodes" works in WordPress AJAX feature.

You might check it with plugin author of the "WooCommerce Memberships restriction shortcodes"

Relevant Documentation:

https://developer.wordpress.org/reference/functions/wp_doing_ajax/

This support ticket is created hace 4 años, 7 meses. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por liatG hace 4 años, 7 meses.

Asistido por: Luo Yang.

Autor
Mensajes
#1789789

I have enabled AJAX pagination in a View and when viewing the second or subsequent “pages,” my WooCommerce Memberships restriction shortcodes do not work.
Page affected: enlace oculto
View: enlace oculto
I have made a Loom video showing the exact details:
enlace oculto
Can you help me stop this error from happening? Thank you!

#1789983

Hello,

The Views AJAX pagination is using WordPress file wp-admin/admin-ajax.php to load data, please make sure your "WooCommerce Memberships restriction shortcodes" works in WordPress AJAX feature:
https://developer.wordpress.org/reference/functions/wp_doing_ajax/

You might check it with plugin author of the "WooCommerce Memberships restriction shortcodes"

#1791451

Thank you, I have posted the ticket to the support team for WooCommerce Memberships plugin.