This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'themes_api_args', 'wpe_ejemplo_api_themes' ); | |
function wpe_ejemplo_api_themes( $args ) { | |
$args->author = 'wordpressdotorg'; | |
return $args; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'themes_api_args', 'wpe_ejemplo_api_themes' ); | |
function wpe_ejemplo_api_themes( $args ) { | |
print_r( $args ); | |
die(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'wp_ajax_' . $_GET['action'], 'wp_ajax_' . str_replace( '-', '_', $_GET['action'] ), 1 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do_action( 'wp_ajax_' . $_REQUEST['action'] ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do_action( 'wp_ajax_' . $_REQUEST['action'] ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script id="tmpl-theme" type="text/template"> | |
.... | |
</script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
echo "Let's see if this shit embeds gists somehow"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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() ); |
NewerOlder