Created
May 31, 2018 17:33
-
-
Save generatepress/38a00e43abb9a758c14a5e07ffbee0b3 to your computer and use it in GitHub Desktop.
Add the page header image to WooCommerce
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
add_action( 'wp', 'tu_add_page_header_image_woocommerce', 60 ); | |
function tu_add_page_header_image_woocommerce() { | |
if ( function_exists( 'is_woocommerce' ) && is_woocommerce() ) { | |
add_action( 'generate_before_content', 'generate_page_header' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment