CodeLab

Enjoy all additional useful tools, codes, snippets and custom solutions in one library

Specify your needs

Plugins
Select
Plugins
Categories
Select
Categories
Types
Select
Types
Programming languages
Select
Programming languages
Builders
Select
Builders
Show all filters Collapse

CodeLab

Enjoy all additional useful tools, codes, snippets and custom solutions in one library

Apply Filters by Pressing Enter Key
Copy link
Link copied
  • JetSmartFilters
  • Filters & Search
  • JavaScript
Automatically triggers filter application in JetSmartFilters when the “Enter” key is pressed during search input.
Apply All Paginations Simultaneously
Copy link
Link copied
  • JetSmartFilters
  • Filters & Search
  • JavaScript
Enables the simultaneous application of all pagination controls in JetSmartFilters, synchronizing pagination behavior across multiple filter instances.
Filter REST API Queries by Created Date in Custom Content Types
Copy link
Link copied
  • JetEngine
  • JetSmartFilters
  • Filters & Search
  • PHP
This snippet extends REST API queries for Custom Content Types (CCTs) by filtering listing results based on created dates using macros processing. It enables dynamic filtering via API when date parameters need parsing before query execution.
Advanced Customization and API Usage for Filters
Copy link
Link copied
  • JetSmartFilters
  • Filters & Search
  • PHP
  • JavaScript
This snippet shows how to use JetSmartFilters API and hooks to initialize filters, handle events, customize queries, and modify options, providing full control over dynamic filter behavior on both the frontend and backend.
Prepare Range Filter Value for Macros
Copy link
Link copied
  • JetSmartFilters
  • Dynamic Content
  • Filters & Search
  • PHP
This snippet prepares JetSmartFilters range filter values by formatting them for use with JetEngine macros, enabling advanced dynamic content and calculations.
Smooth Scroll to Top After Filters Are Applied
Copy link
Link copied
  • JetSmartFilters
  • Filters & Search
  • JavaScript
This JavaScript snippet triggers a smooth page scroll to the top whenever filters are applied using AJAX, enhancing user experience by immediately bringing the newly filtered results into the viewport.
Split Range Filter Values into Separate Query Variables
Copy link
Link copied
  • JetSmartFilters
  • Filters & Search
  • PHP
This snippet modifies JetSmartFilters range filter queries by splitting a range value into separate components and placing them in custom query variables for easier processing.
Fix JetSmartFilters Search Query Variables
Copy link
Link copied
  • JetSmartFilters
  • Filters & Search
  • PHP
This snippet cleans JetSmartFilters query variables by removing the “|search” suffixes so that search parameters are correctly recognized in the plain query array.
Set Booking Calendar View To Specific Month Via Script
Copy link
Link copied
  • JetEngine
  • JetSmartFilters
  • JetBooking
  • Booking & Appointments
  • Filters & Search
  • PHP
  • JavaScript
This snippet sets the JetBooking calendar to a specific month, listens for filter events, and updates a user meta field via AJAX after a booking. It integrates JetBooking, JetSmartFilters, and JetEngine to coordinate these actions in a single custom script.

Let’s build together

Have your own solution?

Came up with a great solution and want to show it to the Crocoblock community?

Request a new feature

Leave a feature request through GitHub, and our developers will consider it