English 中文(简体)
用背书删除用户
原标题:wordpress delete user by id
  • 时间:2012-05-15 12:34:44
  •  标签:
  • wordpress

i 目前,我正试图允许一个字塔库删除数据库的条目。

此时此刻,我收到一份表格,表明他们希望继续工作。 他们一度点ok,然后用 f鱼法朝一页照射:

<?php $user_id = $current_user->ID ;  wp_delete_user($user_id) ; ?>

现在,你将转向主页。

“并”

出于某种原因,该潜水器在工作。 有什么想法? 没有发现错误,麦加复习正常。

任何帮助都将受到高度赞赏。

Cheers Danyo

EDIT: Just noticed the meta refresh isnt showing, but should be located under the message "现在,你将转向主页。"

最佳回答

I believe WP functions are subject to the same permission restrictions as the admin area. That said, I don t think anyone can delete an account (not even their own). In fact, I m not even sure you can delete your own account if you were an admin.

这种gu/<,穿着一只 que子,应该工作,但能够得到一席之地。 就我所知,这一缩略语将从“用户”表中删除用户,但不删除用户员额。 视你想如何处理这一问题而定,根据这一办法自行制定解决办法。

问题回答

暂无回答




相关问题
Wrap stray text in <p> tags

Wordpress issue.. how do I wrap stray text in P tags? Example: Before- <div class = "content"> <img src = "hello.jpg"/> <h1>Introduction</h1> Hello! this is ...

Using jQuery Plugins with Wordpress

Having a bit of trouble using jQuery plugins (Superfish, jQuery UI, etc) using Wordpress. Everything works fine in my plain non-Wordpress site, but Wordpress seems to conflict with JQuery. There must ...

WordPress Data Storage Efficiency

I ve been asked to review a WordPress plugin of sorts and try to find ways of making it faster. The premise of this plugin is basically to store a bunch of users and shifts and appointments and ...

Why can t I properly style a blockquote in Wordpress?

On the design I just created for my website, I have a blockquote styled with two quote images using the span technique in css: blockquote { background-image: url(images/openquote.jpg); background-...

How does the WordPress <!--nextpage--> tag actually work?

What happens? I m guessing that somehow the post or page is parsed before displaying, and then just split into two methods? I can t seem to find any documentation on how the underlying <?php ...

Wordpress Plug-ins: How-to add custom URL Handles

I m trying to write a Wordpress Plug-in but can t seem to figure out how you would modify how a URL gets handled, so for example: any requests made for: <url>/?myplugin=<pageID> will ...

热门标签