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
function deploy() { | |
return src([ | |
'./**/*', | |
'!bower_components', | |
'!./{node_modules,node_modules/**/*}', | |
'!./package-lock.json', | |
'!./debug.log', | |
'!./gitignore', | |
'!./assets/{sass,sass/*}' | |
], {base: "."}) |
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 | |
function add_query_vars_filter( $vars ){ | |
$vars[] = "item"; | |
return $vars; | |
} | |
add_filter( 'query_vars', 'add_query_vars_filter' ); | |
get_query_var('item'); |
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 $audio_media = get_media_embedded_in_content( | |
apply_filters( 'the_content', get_the_content() ), array( 'audio') | |
); | |
if ( has_post_format( 'audio' )) { | |
foreach ($audio_media as $audio_med) { | |
echo $audio_med; | |
} | |
} | |
?> |
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
git init | |
git add . | |
git commit -m "first" | |
git remote add origin "xxxxxxxxxxx.git" | |
git push --set-upstream origin master |
OlderNewer