Created
November 4, 2019 14:12
-
-
Save ibndawood/591daff029312b5155744e507f963447 to your computer and use it in GitHub Desktop.
#369
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( 'init', 'electro_aws_search_form_hooks' ); | |
if ( ! function_exists( 'electro_aws_search_form_hooks' ) ) { | |
function electro_aws_search_form_hooks() { | |
add_filter( 'electro_use_third_party_navbar_search', '__return_true', 10 ); | |
add_action( 'electro_navbar_search_third_party', 'electro_aws_search_form', 10 ); | |
} | |
} | |
if ( ! function_exists( 'electro_aws_search_form' ) ) { | |
function electro_aws_search_form() { | |
if ( is_woocommerce_activated() ) : ?> | |
<div class="navbar-search"><?php | |
aws_get_search_form(); | |
?></div> | |
<?php | |
endif; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment