This file contains hidden or 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 | |
| function add_old_order_status_tooltips( $status_names, $order ) { | |
| $order_id = $order->get_id(); | |
| $order_status = wc_get_order_statuses(); | |
| remove_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_order_comments' ), 10, 1 ); | |
| $comment_count = get_comment_count( $order_id ); | |
| add_filter( 'comments_clauses', array( 'WC_Comments', 'exclude_order_comments' ), 10, 1 ); |
This file contains hidden or 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
| $.ajax({ | |
| type: "post", | |
| dataType: "json", | |
| url: ajaxRef.ajax_url, | |
| data: { | |
| action: "action_name", | |
| nonce: ajaxRef.nonce, | |
| }, | |
| success: function(msg){ | |
| console.log(msg); |
This file contains hidden or 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
| /* | |
| block editor for posts + widgets | |
| */ | |
| add_filter("use_block_editor_for_post", "__return_false", 10); | |
| add_filter("use_widgets_block_editor", "__return_false" ); | |
| remove_action( 'wp_enqueue_scripts', 'wp_enqueue_global_styles' ); | |
| remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' ); |