User Following System

Here are some pointers: Why are you using output buffering in tb_get_follow_unfollow_links()? I see no reason this is needed. In tb_get_follow_unfollow_links() only echo 1 button. On page load use php to decide what classes and button text you have to set. With jQuery change the button when you get a successfull ajax return. Change the … Read more

Query for post term that matches user ID

Try this code it will surely work, before testing this code make sure you have added the categories title as numbers. $terms = get_terms( array( ‘taxonomy’ => ‘list’, ‘hide_empty’ => false )); $user = wp_get_current_user(); if(!empty($terms)){ foreach ( $terms as $term ) { if($term->name == $user->ID){ // Do something } } } This code will … Read more

Modify new user email notification in network admin screen wp multisite

Muhammad, Multisite uses the same code in most cases. If you look at the function https://developer.wordpress.org/reference/functions/wp_new_user_notification/, you’ll see that there are filters to change the ‘message’, such as ‘wp_new_user_notification_email_admin’ and ‘wp_new_user_notification_email’. You’ll see the code includes link to “network_site_url” allowing for a new ms user. A good way to teach oneself these things is to … Read more

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