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
| SELECT `product_code`, COUNT(*) c FROM [prefix]_products GROUP BY `product_code` HAVING c > 1 | |
| #Show product names | |
| SELECT a.product_code,a.status,b.product | |
| FROM xxx_products AS a | |
| LEFT JOIN xxx_product_descriptions AS b | |
| ON a.product_id= b.product_id | |
| WHERE a.product_code | |
| IN (SELECT product_code FROM xxx_products GROUP BY product_code HAVING COUNT(product_code) > 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
| <?php | |
| function fn_remove_dashboard_widgets() { | |
| global $wp_meta_boxes; | |
| unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']); | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']); | |
| unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); |
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
| add_action( 'user_new_form', 'fn_hide_notify_register_from_new_user_form' ); | |
| function fn_hide_notify_register_from_new_user_form() { | |
| echo '<script>jQuery(document).ready(function($) { | |
| $(".user-new-php #send_user_notification").closest("tr").hide(); | |
| } ); </script>'; | |
| } |
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
| add_action( 'user_new_form', 'fn_uncheck_notify_register_on_new_user_form' ); | |
| function fn_uncheck_notify_register_on_new_user_form() { | |
| echo '<script>jQuery(document).ready(function($) { | |
| $("#send_user_notification").removeAttr("checked"); | |
| } ); </script>'; | |
| } |
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 fn_hide_personal_options_section_from_user_edit_screen(){ | |
| echo '<script>jQuery(document).ready(function($) { | |
| $(".user-edit-php .user-admin-color-wrap").closest(".form-table").hide(); | |
| $(".user-edit-php .user-admin-color-wrap").closest(".form-table").prev("h2").hide(); | |
| } ); </script>'; | |
| } | |
| if (!current_user_can('manage_options')) { |
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 fn_remove_product_data_tabs($tabs) { | |
| //unset($tabs['general']); | |
| //unset($tabs['inventory']); | |
| //unset($tabs['linked_product']); | |
| //unset($tabs['shipping']); | |
| //unset($tabs['attribute']); | |
| //unset($tabs['variations']); |
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 fn_remove_astra_metabox_per_post_type() { | |
| $post_types = array( | |
| //'page', | |
| //'product', | |
| //'post', | |
| ); |
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
| RewriteEngine On | |
| RewriteRule ^something(.*)$|^somethingelse(.*)$ - [F] |