View functions.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
/** | |
* https://brightplugins.com/docs/how-to-edit-or-override-the-email-templates-for-custom-order-status/ | |
*/ | |
add_filter( 'viwec_accept_email_type', function ($email_types) { | |
$email_types[] = 'bvos_custom_pickup-point'; // replace it | |
return $email_types; | |
}, 9999 ); | |
function register_email_type( $emails ) { |
View order_email_template.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
/** | |
* How to edit or override the email templates for custom order status? | |
* @link https://brightplugins.com/docs/how-to-edit-or-override-the-email-templates-for-custom-order-status/ | |
*/ | |
add_action( 'woocommerce_email_before_order_table', 'brightplugins_add_content_specific_email', 20, 4 ); | |
function brightplugins_add_content_specific_email( $order, $sent_to_admin, $plain_text, $email ) { | |
if ( $email->id == 'bvos_custom_transit' ) { | |
echo '<p>Content for Transit Status</p>'; |
View change_order_status_on_preorder_date.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
add_filter('change_order_status_on_preorder_date','bp_change_order_status',20,1); | |
function bp_change_order_status($status){ | |
return 'processing'; | |
} |
View preorder_avaiable_date_text.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
add_filter('preorder_avaiable_date_text',function($text , $id){ | |
$custom_date_format = date( 'D M d, Y', strtotime( get_post_meta($id, '_pre_order_date', true)) ); | |
return '<span class="preorder-avaiable-date-text">Available on '.$custom_date_format.'</span>'; | |
},10,2); |
View functions.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
add_action('wp_head','bp_preorder_script'); | |
function bp_preorder_script() { | |
$args = array( | |
'post_type' => 'product_variation', | |
'posts_per_page' => -1, | |
); | |
$query = new WP_Query( $args ); | |
View dcpt.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
function deletePostType($postType = ''){ | |
global $wpdb; | |
$result = $wpdb->query( | |
$wpdb->prepare(" | |
DELETE posts,pt,pm | |
FROM {$wpdb->prefix}posts posts | |
LEFT JOIN {$wpdb->prefix}term_relationships pt ON pt.object_id = posts.ID | |
LEFT JOIN {$wpdb->prefix}postmeta pm ON pm.post_id = posts.ID | |
WHERE posts.post_type = %s |
View porto-theme-quickview.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_action( 'init', 'cix_new_hooks'); | |
function cix_new_hooks(){ | |
remove_action( 'wp_ajax_porto_product_quickview', 'porto_product_quickview' ); | |
remove_action( 'wp_ajax_nopriv_porto_product_quickview', 'porto_product_quickview' ); | |
add_action( 'wp_ajax_porto_product_quickview', 'cix_porto_product_quickview' ); | |
add_action( 'wp_ajax_nopriv_porto_product_quickview', 'cix_porto_product_quickview' ); | |
} |
View wp provision data
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
{ | |
"plugins": [ | |
"query-monitor", | |
"regenerate-thumbnails", | |
{ | |
"slug": "envato-theme-check", | |
"source": "https://github.com/envato/envato-theme-check/archive/master.zip" | |
} |
View Unyson Option TAB Structure
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 | |
/* | |
http://manual.unyson.io/en/latest/options/introduction.html#content | |
*/ | |
$options = array( | |
'tab_1' => array( | |
'title' => esc_html__('Logo Options', 'academic'), | |
'type' => 'tab', | |
'options' => array( | |
'heading' => array( |
NewerOlder