get_edit_post_link [ WordPress Function ]
get_edit_post_link ( $id = 0, $context = 'display' )
| Parameters: |
|
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: edit_post_link, get_edit_tag_link, get_next_posts_link, get_delete_post_link, get_edit_term_link
Retrieve edit posts link for post.
Can be used within the WordPress loop or outside of it. Can be used with pages, posts, attachments, and revisions.
Source
<?php
function get_edit_post_link( $id = 0, $context = 'display' ) {
if ( !$post = &get_post( $id ) )
return;
if ( 'display' == $context )
$action = '&action=edit';
else
$action = '&action=edit';
$post_type_object = get_post_type_object( $post->post_type );
if ( !$post_type_object )
return;
if ( !current_user_can( $post_type_object->cap->edit_post, $post->ID ) )
return;
return apply_filters( 'get_edit_post_link', admin_url( sprintf($post_type_object->_edit_link . $action, $post->ID) ), $post->ID, $context );
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- Template Tags/get edit post link « WordPress Codex
Description. Returns edit post url as string value. Can be used within the WordPress loop or outside of it. Can be used with pages, posts, attachments, and ...
codex.wordpress.org - get_edit_post_link - Echo Works, but Direct Link Fails - WordPress
get_edit_post_link - Echo Works, but Direct Link Fails (2 posts). Urda Member Posted 2 years ago #. So I am writing an "Edit This" for my theme and I have a ...
wordpress.org - get_edit_post_link Wordpress hook details -- Adam Brown, BYU ...
WordPress version history for get_edit_post_link ... We find related hooks using word stems. get_edit_post_link has 3 significant word stem(s): edit , post , link .
adambrown.info - PHPXRef 0.7 : WordPress : Function Reference: get_edit_post_link()
Function and Method Cross Reference. get_edit_post_link(). Defined at: /wp- includes/link-template.php -> line 886. Referenced 23 times: ...
phpxref.ftwr.co.uk