Skip to content

Instantly share code, notes, and snippets.

Sabrina Zeidan sabrina-zeidan

Block or report user

Report or block sabrina-zeidan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jaredatch
jaredatch / functions.php
Last active Jan 14, 2020
WordPress Search Autocomplete using WP REST API v2
View functions.php
<?php
/**
* Enqueue scripts and styles.
*
* @since 1.0.0
*/
function ja_global_enqueues() {
wp_enqueue_style(
'jquery-auto-complete',
@DavidWells
DavidWells / add-wordpress-settings-page.php
Created Jan 28, 2013
WordPress :: Add Settings Page with All Fields
View add-wordpress-settings-page.php
<?php
/*
Plugin Name: Homepage Settings for BigBang
Plugin URI: http://www.inboundnow.com/
Description: Adds additional functionality to the big bang theme.
Author: David Wells
Author URI: http://www.inboundnow.com
*/
// Specify Hooks/Filters
@MaximeCulea
MaximeCulea / wp-multinetwork.php
Last active Apr 2, 2020
Cheatset for multinetwork
View wp-multinetwork.php
<?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;
You can’t perform that action at this time.