This file contains 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
/** | |
* Overwriting Event "Free" button text | |
*/ | |
add_filter( 'we_free_text', function( $text ) { | |
return esc_html__( 'Free Admission', 'wolf-events' ); | |
} ); |
This file contains 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
// Replace "theme_" with your theme slug | |
function theme_add_release_metaboxes( $metaboxes ) { | |
$metaboxes['release_options']['metafields'][] = array( | |
'label' => esc_html__( 'My New Option', '%TEXTDOMAIN%' ), | |
'id' => '_my_new_option', | |
'type' => 'text', | |
); | |
} | |
add_filter( 'theme_release_metaboxes', 'theme_add_release_metaboxes' ); |
This file contains 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
$streaming_player_id = 10269; // your playlist ID | |
$streaming_player_url = 'http://dreamsiteradiocp3.com:8010/stream'; // your streaming URL | |
/** | |
* Overwrite sticky player tracklist to play audio streaming | |
*/ | |
function radio_stream( $tracklist, $post_id ) { | |
global $streaming_player_id, $streaming_player_url; |
This file contains 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
/* replace the "wolf" prefix by your theme slug */ | |
add_filter( 'wolf_logo_home_url', function() { | |
return 'http://yourdomain.com/my-page' | |
} ); |
This file contains 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
seal.js, js/jquery/jquery.js,jarallax.min.js,particles.min.js,ofi.min.js |
This file contains 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 lightbox settings | |
* | |
* Allow you to add, remove or edit the fancybox gallery settings | |
* | |
* Replace the "theme_" prefix by your theme slug (e.g "hares_") | |
* | |
* @see https://fancyapps.com/fancybox/3/docs/#options | |
*/ | |
function theme_custom_filter_lightbox_settings( $settings ) { |
This file contains 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
/** | |
* Output the featured image at the begining of the post | |
*/ | |
function output_featured_image() { | |
echo '<p>'; | |
the_post_thumbnail( 'large' ); | |
echo '</p>'; | |
} | |
add_action( 'theme_post_content_start', 'output_featured_image' ); // replace "theme" by your theme slug |
This file contains 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
/** | |
* Exclude sticky posts from page. | |
* | |
* @param object $query | |
*/ | |
function theme_name_ignore_sticky_posts( $query ) { | |
if ( 26 === get_the_ID() && is_page() && $query->is_main_query() ) { // 26 is your page ID | |
$query->set('post__not_in', get_option('sticky_posts') ); | |
} | |
} |
This file contains 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 | |
/** | |
* Overwrite custom post type taxonomy slug | |
* | |
* @param array $args | |
* @param string $taxonomy | |
* @return array $args | |
* | |
*/ | |
function overwrite_post_type_taxonomy_slug( $args, $taxonomy ) { |
NewerOlder