You may need to be at the root of your WP install. In Local by Flywheel this will be the app directory.
wp db export your/path/here/my_wordpress_db.sql
<?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; |
<?php | |
/** | |
* Enqueue scripts and styles. | |
* | |
* @since 1.0.0 | |
*/ | |
function ja_global_enqueues() { | |
wp_enqueue_style( | |
'jquery-auto-complete', |
#!/bin/bash | |
mkdir -p popular | |
while read repo; | |
do | |
[ -d "popular/$repo" ] || svn export "https://plugins.svn.wordpress.org/$repo/trunk" "popular/$repo" | |
done <popular-plugins.txt |
/** | |
* Allow to remove method for an hook when, it's a class method used and class don't have variable, but you know the class name :) | |
* source: https://github.com/herewithme/wp-filters-extras | |
* More: http://wordpress.stackexchange.com/questions/57079/how-to-remove-a-filter-that-is-an-anonymous-object | |
*/ | |
function remove_filters_for_anonymous_class( $hook_name = '', $class_name ='', $method_name = '', $priority = 0 ) { | |
global $wp_filter; | |
// Take only filters on right hook name and priority | |
if ( !isset($wp_filter[$hook_name][$priority]) || !is_array($wp_filter[$hook_name][$priority]) ) |
<?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 |