You appear to be a bot. Output may be restricted
Description
Get an edit post link for use in emails
This function should generate the link regardless of the current user's capability get_edit_post_link() won't do this.
Usage
bw_get_edit_post_link( $post_type, $post );
Parameters
- $post_type
- ( mixed ) required –
- $post
- ( mixed ) required –
Returns
void
Source
File name: oik-fields/shortcodes/oik-new.php
Lines:
1 to 6 of 6
function bw_get_edit_post_link( $post_type, $post ) { $post_type_object = get_post_type_object( $post_type ); $action = '&action=edit'; $epl = admin_url( sprintf( $post_type_object->_edit_link . $action, $post) ); return( $epl ); }