Advertisement
majeedraza

WordPress - Hide the "Edit" link for logged-in users

Aug 4th, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.12 KB | None | 0 0
  1. <?php
  2. // WordPress - hide the front end "Edit" link for logged-in users
  3. add_filter( 'edit_post_link', '__return_false' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement