Skip to content

Instantly share code, notes, and snippets.

Daniel Dvorkin MZAWeb

Block or report user

Report or block MZAWeb

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
View functions.php
add_filter( 'themes_api_args', 'wpe_ejemplo_api_themes' );
function wpe_ejemplo_api_themes( $args ) {
$args->author = 'wordpressdotorg';
return $args;
View print_r.php
add_filter( 'themes_api_args', 'wpe_ejemplo_api_themes' );
function wpe_ejemplo_api_themes( $args ) {
print_r( $args );
View admin-ajax.php
add_action( 'wp_ajax_' . $_GET['action'], 'wp_ajax_' . str_replace( '-', '_', $_GET['action'] ), 1 );
View admin-ajax.php
do_action( 'wp_ajax_' . $_REQUEST['action'] );
View theme-install.php
<script id="tmpl-theme" type="text/template">
MZAWeb / 0_reuse_code.js
Created May 13, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
MZAWeb / php.php
Created Sep 4, 2013
Testing Hall
View php.php
echo "Let's see if this shit embeds gists somehow";
View .vimrc.local
nmap <Leader>a) :Tabularize /)<CR>
vmap <Leader>a) :Tabularize /)<CR>
nmap <Leader>aa :Tabularize /array<CR>
vmap <Leader>aa :Tabularize /array<CR>
let g:spf13_no_indent_guides_autocolor=1
UnBundle 'vim-scripts/sessionman.vim'
UnBundle 'vim-indent-guides'
let g:gist_clip_command = 'pbcopy'
MZAWeb / functions.php
Created Aug 18, 2013
Playing with the new do_accordion_sections
View functions.php
add_action( 'edit_form_after_editor', 'testing_accordion_section' );
function testing_accordion_section() {
$screen = get_current_screen();
do_accordion_sections( $screen, 'normal', get_post() );
You can’t perform that action at this time.