Skip to content

Instantly share code, notes, and snippets.


Sabrina Zeidan sabrina-zeidan

View GitHub Profile
MaximeCulea / wp-multinetwork.php
Last active Apr 2, 2020
Cheatset for multinetwork
View wp-multinetwork.php
* Grant newly superadmin user to all networks when working in a multi-network context
* @author Maxime CULEA
add_action( 'grant_super_admin', 'superadmin_is_superadmin_for_all_networks' );
function superadmin_is_superadmin_for_all_networks( $user_id ) {
remove_action( 'grant_super_admin', 'superadmin_is_superadmin_for_all_networks' );
global $wpdb;
jaredatch / functions.php
Last active Jun 30, 2020
WordPress Search Autocomplete using WP REST API v2
View functions.php
* Enqueue scripts and styles.
* @since 1.0.0
function ja_global_enqueues() {
kasparsd /
Last active Jun 25, 2020
Get the top 1000 most popular plugins on
DavidWells / add-wordpress-settings-page.php
Created Jan 28, 2013
WordPress :: Add Settings Page with All Fields
View add-wordpress-settings-page.php
Plugin Name: Homepage Settings for BigBang
Plugin URI:
Description: Adds additional functionality to the big bang theme.
Author: David Wells
Author URI:
// Specify Hooks/Filters
You can’t perform that action at this time.