Quantcast
Channel: 楽天 みんなで解決!Q&A 新着質問([技術者向] コンピューター/205)
Viewing all articles
Browse latest Browse all 29232

WP ユーザーの投稿への権限を調べる

$
0
0
wordpressで現在ログインしているユーザーが 投稿IDで指定した投稿に対して 編集の権限があるか調べる方法はあるでしょうか? 自身がpost_authorである投稿かというのだけではなく edit_others_posts権限による自身の権限レベル以下への 編集権限についても調べたいのです get_post()->post_author,current_user_can(),get_roll()で ごにょごにょすればできるんでしょうが すでにそういう関数が用意されてるのにわざわざ作っちゃうのはイヤなので よろしくお願いします

Viewing all articles
Browse latest Browse all 29232

Trending Articles