View wp_admin_search_results_vin.php
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 | |
add_filter( 'posts_search', 'm_cars_search_vin' ); | |
function m_cars_search_vin( $where ) { | |
global $pagenow, $wpdb, $wp; | |
// check if we are on the right page & performing a search & for the right post type | |
if ( 'edit.php' != $pagenow || ! is_search() || ! isset( $wp->query_vars['s'] ) || 'cars' != $wp->query_vars['post_type'] ) { | |
return $where; |
View wc_vendors_custom_commission.php
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 | |
add_filter('wcv_commission_rate', 'm_commission_update', 20, 5); | |
/** | |
* @param $commission | |
* @param $product_id | |
* @param $product_price | |
* @param $order | |
* @param $qty |
View wc_vendors_custom_commission_country.php
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 | |
add_filter('wcv_commission_rate', 'm_commission_update', 20, 5); | |
/** | |
* @param $commission | |
* @param $product_id | |
* @param $product_price | |
* @param $order WC_Order | |
* @param $qty |
View gform_sections_accordion.css
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
.m_collapse_text, .show_collapse .m_expand_text, .m_section{ | |
display: none; | |
} | |
.show_collapse .m_collapse_text { | |
display: inline; | |
} |
View gform_sections_accordion.css
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
.m_collapse_text, .show_collapse .m_expand_text, .m_section{ | |
display: none; | |
} | |
.show_collapse .m_collapse_text { | |
display: inline; | |
} |
View clipboard_js_example.html
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
<a href="javascript:void(0);" data-clipboard-text="This is the text to copy!" class="btn-copy"> | |
<span class="m_copy_text">Copy Link</span> | |
</a> |
View print_this_example.html
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
<a href="#" class="wsl_print" data-target=".search-results"> | |
Print element | |
</a> |
View m_hide_gateways.php
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 | |
/** | |
* @param $available_gateways array of available WooCommerce gateways | |
* | |
* @return array Updated gateways | |
*/ | |
function m_disable_gateways_for_loggedout_users( $available_gateways ) { | |
if ( ! is_user_logged_in() && ! current_user_can( 'manage_options' ) ) { |
View search_wp_index_woocommerce_variation_data.php
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 | |
/** | |
* @param array $extra_meta | |
* @param WP_Post $post_being_indexed | |
* | |
* @return array | |
*/ | |
function m_index_woocommerce_variation_isbn( $extra_meta, $post_being_indexed ) { |
View wc_vendors_custom_percent_commission.php
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 | |
add_filter('wcv_commission_rate', 'm_commission_update', 20, 5); | |
/** | |
* @param $commission | |
* @param $product_id | |
* @param $product_price | |
* @param $order | |
* @param $qty |
OlderNewer