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
| /** | |
| * Filter copyright text | |
| * | |
| * @param string $text | |
| * @return string $text | |
| */ | |
| function my_child_theme_filter_copyright_text( $text ) { | |
| $text = '<a href="http://my-link.com">My copyright text</a>'; // replace your URL and text here |
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
| /** | |
| * Rewrite band taxonomy slug | |
| */ | |
| function theme_change_band_taxonomies_slug( $args, $taxonomy ) { | |
| if ( 'band' === $taxonomy ) { | |
| $args['rewrite']['slug'] = 'artist-releases'; | |
| } | |
| return $args; | |
| } | |
| add_filter( 'register_taxonomy_args', 'theme_change_band_taxonomies_slug', 10, 2 ); |
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
| /* | |
| * Re-add disabled element | |
| * http://stackoverflow.com/questions/7225070/php-array-delete-by-value-not-key | |
| * | |
| * List of diabled elements: | |
| * 'vc_section', | |
| * 'vc_tour', // deprecated | |
| * 'vc_btn', // deprecated | |
| * 'vc_tta_accordion', | |
| * 'vc_tta_tabs', |
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
| /** | |
| * Rewrite single attachment URL | |
| * | |
| * Replace "pic" by your slug | |
| */ | |
| function add_custom_photo_rewrite_rule() { | |
| add_rewrite_rule( | |
| 'pic/([a-z0-9-_]+)/?', // ([^/]+) | |
| 'index.php?attachment=$matches[1]', | |
| 'top' |
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
| /** | |
| * Overwrite "Buy Ticket" text in wolf-tour-dates.php | |
| * | |
| * @param string $string | |
| * @return string $string | |
| */ | |
| function overwrite_buy_ticket_text( $string ) { | |
| return 'More Info'; | |
| } | |
| add_filter( 'wolf_buy_ticket_text', 'overwrite_buy_ticket_text' ); |