Skip to content

Commit

Permalink
WP Notice tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
neilgee committed Jan 29, 2021
1 parent 9f3f8a9 commit 3a5e65a
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
27 changes: 26 additions & 1 deletion includes-child/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ function bt_remove_dashboard_widgets() {
* @since 1.0.0
*/

// Disable auto-update email notifications for plugins.
add_filter( 'auto_plugin_update_send_email', '__return_false' );

// Disable auto-update email notifications for themes.
add_filter( 'auto_theme_update_send_email', '__return_false' );

// Disable application passwords introduced in WP 5.6.
add_filter( 'wp_is_application_passwords_available', '__return_false' );


add_action( 'admin_head', 'bt_hide_tabs' );
/**
Expand Down Expand Up @@ -123,4 +132,20 @@ function wsl_edit_text() {
// $role_object = get_role( 'editor' );

// add $cap capability to this role object
// $role_object->add_cap( 'edit_theme_options' );
// $role_object->add_cap( 'edit_theme_options' );



add_filter('wp_mail_from', 'prefix_email_from');
// Change default WordPress from email address
function prefix_email_from( $new_email ) {
$admin_email = get_option( 'admin_email' );
return $admin_email;
}

add_filter('wp_mail_from_name', 'prefix_name_from');
// Change default WordPress from name
function prefix_name_from( $new_name ) {
$blogname = get_option( 'blogname' );
return $blogname;
}
2 changes: 1 addition & 1 deletion includes-child/woocommerce/woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function bt_dropdown_choice( $args ){
}


add_filter( 'woocommerce_add_to_cart_redirect', 'bt_add_to_cart_redirect' );
//add_filter( 'woocommerce_add_to_cart_redirect', 'bt_add_to_cart_redirect' );
/**
* Go Straight to checkout after added to cart
* @since 1.7.0
Expand Down
2 changes: 2 additions & 0 deletions plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,3 +380,5 @@ function gsm_register_required_plugins() {

tgmpa( $plugins, $config );
}


4 changes: 4 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ p {
padding: 0;
}

.no-para-space p{
margin-bottom: 0;
}

.fl-post-content ul,
.fl-post-content ol {
margin-top: 20px;
Expand Down

0 comments on commit 3a5e65a

Please sign in to comment.