Edit Dashboard for Admins
Author | Posts |
---|---|
April 8, 2013 at 5:05 pm 1922 | |
ivaxtobac | Hello Can i modifie something on pluggin to edit posts with WP Dashboard only for Admins? When I click on edit link, pluggin use form edit to do it, and i want to do this with WP Dashboard Thanks Javier |
April 8, 2013 at 5:24 pm 1924 | |
Tareq Hasan | Yes you can. But when you do that, keep a backup of your custom codes. If you update the plugin, your changes will be lost. |
April 8, 2013 at 5:29 pm 1925 | |
ivaxtobac | Ok thanks Tareq. Can you explain me how to do this? Thanks |
April 8, 2013 at 5:35 pm 1926 | |
Tareq Hasan | You can put this code where you want it in the dashboard. The dashboard is located in Seems like link is converting, actually: ID ); ?>">Admin Edit |
April 8, 2013 at 5:48 pm 1928 | |
ivaxtobac | Thanks Tareq I fix your code (some thinks are wrong) ant put it on single.php Here code [code][/code]<?php if ( current_user_can( ‘delete_others_pages’ ) ) { ?> <a href=”<?php echo admin_url( ‘post.php?action=edit&post=’ . $post->ID); ?>” rel=”nofollow”>Admin Edit</a> <?php } ?>[] |