Skip to content

Instantly share code, notes, and snippets.

View moxet's full-sized avatar

Abdul Muqsit moxet

View GitHub Profile
@Lonsdale201
Lonsdale201 / gist:cd73b2340a0ca12697a3c92763c61dea
Last active November 23, 2023 13:10
JetSmartfilter Checkbox filter - Group parent toggle
// make your Checkbox filter, and ensure that "Group terms by parents" option is checkhed.
// In the Checkbox filter widget enable the Dropdown additions. You can use the search option also. (Mixed filter type not tested)
// Paste this code in a specific js file, plugin, or use the Elementor custom code function. (if elementor custom code, dont forget to
// use the tags, like <script> and <style>
// Multi level not tested, only one level.
// Warning this script will affect all of your checkbox filter, where you settinged up the "Group terms by parents" option.
// PREVIEW : https://prnt.sc/5fPJ6iebdDCy
@MjHead
MjHead / rest-api-terms-with-labels.php
Last active March 31, 2023 10:11
WordPress Rest API. Add post terms with labels to API response
<?php
/**
* Add this code without opening PHP tag into funcitons.php og your active theme or with any code snippets plugin
*/
add_action(
'rest_api_init',
function() {
/**
* Here you can set taxonomies slugs you wnat to add to Rest API response
@MjHead
MjHead / featured-media-url.php
Last active March 31, 2023 10:08
WordPress REST API. Add featured image to REST API response
@Crocoblock
Crocoblock / get-related.md
Last active May 30, 2024 07:30
Get JetEngine Related Items programmatically / Update related items / Get/Update relation meta
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>MediaCapture and Streams API</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="main.css">
</head>
<body>
<header>