delete user not working

WordPress should give this option below Attribute all posts to: Anyhow, I wrote a post on this (Clean Comments Table After User Deleted) Edit Also, you can move your all posts from deleted users to admin user. global $wpdb; $admin_id = 1; // Assign admin user id here $posts_table = $wpdb->prefix . ‘posts’; $users_table = … Read more

Delete Term via edit-tags.php

“<a class=”delete-tag” href=”” . wp_nonce_url( “edit-tags.php?action=delete&amp;taxonomy=$taxonomy&amp;tag_ID=$tag->term_id”, “delete-tag_’ . $tag->term_id ) . “‘>” . __( ‘Delete’ ) . “</a>”; $tag->term_id It’s exactly what it says, where did you define $tag? Also, I’m assuming $id is the $tag->term_id, so you might want to use $id instead.

How to add a prefix to existing custom fields over MYSQL query?

important: backup your database first! Assuming your table prefix is ‘wp_’, this query will change the custom field names: update wp_postmeta set meta_key = ‘booking_testfield’ where meta_key = ‘testfield’; NB: this also assumes that the custom field name is unique to your application, i.e. it isn’t used by another post type. If it is possible … Read more

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