Download wp-cli.phar
create foler wp-cli in drive c
create file wp.bat an push this data
@ECHO OFF
<?php | |
add_filter( 'user_search_columns', 'filter_function_name', 10, 3 ); | |
function filter_function_name( $search_columns, $search, $wp_user_query ) { | |
$search_columns[] = 'user_url'; | |
return $search_columns; | |
} | |
//Where 'filter_function_name' is the function WordPress should call when filter is run. Note that the filter function must return an value after it is finished processing or the search terms will be empty. | |
//filter_function_name should be unique function name. It cannot match any other function name already declared. |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j
<?php | |
define('DOING_AJAX', true); | |
if ( ! isset( $_POST['action'] ) ) | |
die('-1'); | |
require_once('../../../../wp-load.php'); | |
// headers for JSON | |
header('Content-Type: application/json'); |
<?php | |
/* | |
Plugin Name: HowTo Plugin | |
Plugin URI: | |
Description: This Plugin demonstrates how you can build your own plugin pages using the WordPress provided draggable metaboxes, requires WordPress 2.7 version, supports WordPress 2.8 changed boxing layout engine | |
Author: Heiko, Frank | |
Author URI: http://bueltge.de | |
Version: 0.1 | |
License: |
<?php | |
/* Prevent loading this file directly and/or if the class is already defined */ | |
if ( ! defined( 'ABSPATH' ) || class_exists( 'MYFX_Settings_Class' ) ) | |
return; | |
/** | |
* Settings with Meta Boxes | |
* Helper class to easily create settings page for plugin or theme with Meta Box API. | |
* |
//only use package | |
{ | |
"require": { | |
"geoip2/geoip2": "^2.7.0", | |
"s1lentium/iptools": "^1.1.0", | |
"donatj/phpuseragentparser": "^0.9.0", | |
"whichbrowser/parser": "2.0.37", | |
"erusev/parsedown": "^1.6" | |
}, | |
"config": { |
<?php | |
/** | |
* Remove [All in One SEO Pack] HTML Comments | |
* @link //gist.github.com/llgruff/a7ab776167aa0ed307ec445df54e5fdb | |
*/ | |
if (defined('AIOSEOP_VERSION')) { | |
add_action('get_header', function() { | |
ob_start( | |
function($o) { | |
return preg_replace('/\n?<.*?One SEO Pack.*?>/mi','',$o); |