Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /** Display only current author posts */
- function current_author_posts($link) {
- global $post,$current_user;
- get_currentuserinfo();
- if ($post->post_author == $current_user->ID) {
- return $post;
- }
- return false;
- }
- add_filter('get_edit_post_link','current_author_posts');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement