Infinite_Scroll
Class Server
Source
File: includes/modules/woocommerce_booster/views/infinite_scroll.php
Expand full source code Collapse full source code View on Github
Methods
- action_template_redirect — Does the legwork to determine whether the feature is enabled.
- action_wp_footer_settings — Prints the relevant infinite scroll settings in JS.
- add_product_card_attrs — Adds page attribute to product card.
- ajax_response — Our own Ajax response, avoiding calling admin-ajax
- get_base_url — Get shop url.
- get_url_args — Get args form url.
- is_infinite_request — Has infinite scroll been triggered?
- is_last_batch — Check whether or not this is the last batch for a request
- query — Runs the query and returns the results via JSON.
- register_hooks — Register actions and filters
- render — Add a default renderer for WooCommerce products within infinite scroll.
- result_count — Same as woocommerce_result_count but with last case a bit different