diff --git a/includes-child/dashboard.php b/includes-child/dashboard.php index 07fe1a8..cd5a25b 100644 --- a/includes-child/dashboard.php +++ b/includes-child/dashboard.php @@ -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' ); /** @@ -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' ); \ No newline at end of file +// $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; +} \ No newline at end of file diff --git a/includes-child/woocommerce/woocommerce.php b/includes-child/woocommerce/woocommerce.php index 3b2ca03..522d253 100644 --- a/includes-child/woocommerce/woocommerce.php +++ b/includes-child/woocommerce/woocommerce.php @@ -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 diff --git a/plugins.php b/plugins.php index 8366d84..f1041aa 100644 --- a/plugins.php +++ b/plugins.php @@ -380,3 +380,5 @@ function gsm_register_required_plugins() { tgmpa( $plugins, $config ); } + + diff --git a/style.css b/style.css index 4555ba1..31f2963 100644 --- a/style.css +++ b/style.css @@ -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;