edit_post_link [ WordPress Function ]
edit_post_link ( $link = null, $before = '', $after = '', $id = 0 )
| Parameters: |
|
| Defined at: |
|
Benzer Fonksiyonlar: get_edit_post_link, next_post_link, next_posts_link, edit_tag_link, edit_term_link
Display edit post link for post.
Source
<?php
function edit_post_link( $link = null, $before = '', $after = '', $id = 0 ) {
if ( !$post = &get_post( $id ) )
return;
if ( !$url = get_edit_post_link( $post->ID ) )
return;
if ( null === $link )
$link = __('Edit This');
$post_type_obj = get_post_type_object( $post->post_type );
$link = '<a class="post-edit-link" href="' . $url . '" title="' . esc_attr( $post_type_obj->labels->edit_item ) . '">' . $link . '</a>';
echo $before . apply_filters( 'edit_post_link', $link, $post->ID ) . $after;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- edit_post_link - WordPress Codex
Description. Displays a link to edit the current post, if a user is logged in and allowed to edit the post. It must be within The Loop. Use get_edit_post_link to ...
codex.wordpress.org - WordPress › Support » Tags — edit_post_link
(forgot?) Register · WordPress › Support » edit_post_link ...
wordpress.org - WordPress edit_post_link doesn't display (fix) - Scriptygoddess
Feb 15, 2011 ... WordPress edit_post_link doesn't display (fix). Posted by: Jennifer In: WordPress| WordPress Hacks|WordPress: Lessons Learned. I recently ...
www.scriptygoddess.com - Did the Toolbar (Admin Bar) Render edit_post_link Useless ...
Mar 19, 2012 ... Do we really need to keep using edit_post_link in themes, now that we have the admin bar/toolbar? #wordpress #rhetorical. — Konstantin ...
kovshenin.com
Kullanýcý Tartýþmalarý [ wordpress.org ]
- getwithrobby on "How Do I Remove the "Edit" link -"
- getwithrobby on "How Do I Remove the "Edit" link -"
- Samuel B on "How Do I Remove the "Edit" link -"
- getwithrobby on "How Do I Remove the "Edit" link -"
- mayersdesign on "add class to --> edit_post_link"
- DaoByDesign on "add class to --> edit_post_link"
- RyanPrentiss on "add class to --> edit_post_link"
- mdbitz on "Removing the Edit This Entry Link"
- mjescobar on "Removing the Edit This Entry Link"
- castig on "edit_post_link() fails when 'blog url' and 'wordpress url' are different?"