astra_edit_post_link( string $text, string $before = '', string $after = '', int $id, string $class = 'post-edit-link' )
Function to get Edit Post Link
Description
Parameters
- $text
-
(string) (Required) Anchor Text.
- $before
-
(string) (Optional) Anchor Text.
Default value: ''
- $after
-
(string) (Optional) Anchor Text.
Default value: ''
- $id
-
(int) (Required) Anchor Text.
- $class
-
(string) (Optional) Anchor Text.
Default value: 'post-edit-link'
Return
(void)
Source
File: inc/markup-extras.php
function astra_edit_post_link( $text, $before = '', $after = '', $id = 0, $class = 'post-edit-link' ) { if ( apply_filters( 'astra_edit_post_link', false ) ) { edit_post_link( $text, $before, $after, $id, $class ); } }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |