Skip to content

Commit 3a5e65a

Browse files
committed
WP Notice tweaks
1 parent 9f3f8a9 commit 3a5e65a

File tree

4 files changed

+33
-2
lines changed

4 files changed

+33
-2
lines changed

includes-child/dashboard.php

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ function bt_remove_dashboard_widgets() {
7373
* @since 1.0.0
7474
*/
7575

76+
// Disable auto-update email notifications for plugins.
77+
add_filter( 'auto_plugin_update_send_email', '__return_false' );
78+
79+
// Disable auto-update email notifications for themes.
80+
add_filter( 'auto_theme_update_send_email', '__return_false' );
81+
82+
// Disable application passwords introduced in WP 5.6.
83+
add_filter( 'wp_is_application_passwords_available', '__return_false' );
84+
7685

7786
add_action( 'admin_head', 'bt_hide_tabs' );
7887
/**
@@ -123,4 +132,20 @@ function wsl_edit_text() {
123132
// $role_object = get_role( 'editor' );
124133

125134
// add $cap capability to this role object
126-
// $role_object->add_cap( 'edit_theme_options' );
135+
// $role_object->add_cap( 'edit_theme_options' );
136+
137+
138+
139+
add_filter('wp_mail_from', 'prefix_email_from');
140+
// Change default WordPress from email address
141+
function prefix_email_from( $new_email ) {
142+
$admin_email = get_option( 'admin_email' );
143+
return $admin_email;
144+
}
145+
146+
add_filter('wp_mail_from_name', 'prefix_name_from');
147+
// Change default WordPress from name
148+
function prefix_name_from( $new_name ) {
149+
$blogname = get_option( 'blogname' );
150+
return $blogname;
151+
}

includes-child/woocommerce/woocommerce.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function bt_dropdown_choice( $args ){
280280
}
281281

282282

283-
add_filter( 'woocommerce_add_to_cart_redirect', 'bt_add_to_cart_redirect' );
283+
//add_filter( 'woocommerce_add_to_cart_redirect', 'bt_add_to_cart_redirect' );
284284
/**
285285
* Go Straight to checkout after added to cart
286286
* @since 1.7.0

plugins.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,3 +380,5 @@ function gsm_register_required_plugins() {
380380

381381
tgmpa( $plugins, $config );
382382
}
383+
384+

style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ p {
3333
padding: 0;
3434
}
3535

36+
.no-para-space p{
37+
margin-bottom: 0;
38+
}
39+
3640
.fl-post-content ul,
3741
.fl-post-content ol {
3842
margin-top: 20px;

0 commit comments

Comments
 (0)