How to edit the new user email notification template

This is done with the register_new_user filter: // Replace the default new user notification remove_action(‘register_new_user’, ‘wp_send_new_user_notifications’); add_action(‘register_new_user’, ‘my_new_user_email’); You have to remove the default action and register the new function: Create a new function that builds and sends the message. function my_new_user_email($user_id, $deprecated = null, $notify = ‘user’) { // create the message $message = … Read more

How to get a custom taxonomy slug in body classes

To add the custom taxonomy slug to the body classes of your WordPress site, you can use the body_class filter along with your custom code. Below is your example of how you can achieve this: function themeprefix_add_taxonomy_class($classes) { global $post; if (is_page()) { $taxonomy = ‘page_section’; $terms = get_the_terms($post->ID, $taxonomy); if ($terms && !is_wp_error($terms)) { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)