Skip to content

Instantly share code, notes, and snippets.

View morosmo's full-sized avatar
🎯
Focusing

D-E-V morosmo

🎯
Focusing
  • Morosoft
  • Rawalpindi
  • 06:41 (UTC +05:00)
View GitHub Profile
@ihslimn
ihslimn / jsf-extend-search.php
Last active May 27, 2025 10:20
JetSmartFilters Extend Search
<?php
class JSF_Extend_Search {
public function __construct() {
add_filter( 'jet-smart-filters/query/request', array( $this, 'modify_request' ), 0, 2 );
}
public function modify_request( $request, $manager ) {
@Crocoblock
Crocoblock / jsf-exclude-options.php
Last active May 27, 2025 10:21
JetSmartFilters Exclude filter options programmatically
<?php
add_filter( 'jet-smart-filters/filters/filter-options', function( $options, $filter_id ) {
if ( $filter_id != 265823 ) {
return $options;
}
$exclude = array(
24 => true,
@Crocoblock
Crocoblock / get-related.md
Last active December 12, 2025 05:02
Get JetEngine Related Items programmatically / Update related items / Get/Update relation meta
@giovanni-d
giovanni-d / allinonemigration.md
Last active April 9, 2026 17:48
All-in-One WP Migration - Restore From Server (without PRO version) - Restore

All-in-One WP Migration Restore From Server (without pro version)

If you don't want to pay for the PRO version of this plugin, and you want to use the "Restore from Server" functionally that was present in the version 6.77, open your browser’s dev tools and run the code below in the console:

Last confirmed working: May 2025 on version 7.94

var filename = 'FILENAME.wpress';
<?php
/*
Plugin Name: Instrument Hooks for WordPress
Description: Instruments Hooks for a Page. Outputs during the Shutdown Hook.
Version: 0.1
Author: Mike Schinkel
Author URI: http://mikeschinkel.com
*/
if (isset($_GET['instrument']) && $_GET['instrument']=='hooks') {