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
// Move Yoast to bottom | |
function yoasttobottom() { | |
return 'low'; | |
} | |
add_filter( 'wpseo_metabox_prio', 'yoasttobottom'); |
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 | |
global $product; | |
if ( !isset($product) ) return; | |
if ( !method_exists( $product, 'get_attributes' ) ) return; // Doesn't support attributes, won't have a dropdown | |
$attributes = $product->get_attributes(); | |
// Note: <form> is just so this section is styled like the default variation dropdown The form isn't meant to do anything. | |
?> | |
<form class="cart" method="post" enctype='multipart/form-data' data-product_id="<?php echo $product->id; ?>"> |