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 | |
/** | |
* Class M_Custom_Uploads_Filename | |
*/ | |
class M_Custom_Uploads_Filename { | |
/** | |
* M_Custom_Uploads_Filename constructor. | |
*/ |
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
/** | |
* Alter the query vars to include products which have the meta we are searching for. | |
* | |
* @param array $query_vars The current query vars. | |
* | |
* @return array | |
*/ | |
function m_request_query( $query_vars ) { | |
global $typenow; |
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
<script type="text/javascript"> | |
function m_wc_add_to_cart( product_id ) { | |
if ( 'undefined' === typeof wc_add_to_cart_params ) { | |
// The add to cart params are not present. | |
return false; | |
} | |
var data = { | |
product_id: product_id, |
OlderNewer