Created
October 11, 2014 11:54
-
-
Save karpstrucking/d755140a6e6a0c369f75 to your computer and use it in GitHub Desktop.
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 | |
// remove theme-provided shortcode | |
remove_shortcode( 'recent_works' ); | |
// add our own modified version | |
add_shortcode( 'recent_works', 'my_shortcode_recent_works' ); | |
function my_shortcode_recent_work( $atts, $content = null ) { | |
... // your modified shortcode function here | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment