Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function woo_conditionals() {
- // Video Embed
- if( is_single() && ( get_post_type() != 'portfolio' ) || is_home() || is_front_page() || is_ar ) {
- add_action( 'woo_post_inside_before', 'canvas_get_embed' );
- }
- // Post More
- if ( ! is_singular() && ! is_404() || is_page_template( 'template-blog.php' ) || is_page_template( 'template-magazine.php' ) ) {
- add_action( 'woo_post_inside_after', 'woo_post_more' );
- }
- // Tumblog Content
- if ( get_option( 'woo_woo_tumblog_switch' ) == 'true' ) {
- add_action( 'woo_tumblog_content_before', 'woo_tumblog_content' );
- add_action( 'woo_tumblog_content_after', 'woo_tumblog_content' );
- }
- }
Add Comment
Please, Sign In to add comment