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 | |
function fn_woocommerce_remove_virtual_and_downloadable_checkboxes( $options ) { | |
// remove "Virtual" checkbox | |
if( isset( $options[ 'virtual' ] ) ) { | |
unset( $options[ 'virtual' ] ); | |
} | |
// remove "Downloadable" checkbox |
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 | |
function fn_woocommerce_remove_product_types( $types ){ | |
unset( $types['grouped'] ); | |
unset( $types['external'] ); | |
//unset( $types['variable'] ); | |
return $types; | |
} |
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
RewriteEngine On | |
RewriteRule ^something(.*)$|^somethingelse(.*)$ - [F] |
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 | |
function fn_remove_astra_metabox_per_post_type() { | |
$post_types = array( | |
//'page', | |
//'product', | |
//'post', | |
); |
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 | |
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 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 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>'; | |
} |
NewerOlder