%s', esc_url( get_permalink( $post->ID ) ), esc_html__( 'Read More', 'agama' ) ); } return; } /** * Edit Post Link * * Filters the post edit link anchor tag. * * @param mixed $link (required) Anchor tag for the edit link. * * @since 1.1.1 * @since 1.5.0 Updated the code. * @access public * @return string */ function edit_post_link( $link ) { $link = str_replace('class="post-edit-link"', 'class="button button-3d button-mini button-rounded"', $link ); return $link; } /** * Edit Comment Link * * Filters the comment edit link anchor tag. * * @param mixed $link (required) Anchor tag for the edit link. * * @since 1.1.1 * @since 1.5.0 Updated the code. * @access public * @return string */ function edit_comment_link( $link ) { $link = str_replace( 'class="comment-edit-link"', 'class="button button-3d button-mini button-rounded"', $link ); return $link; } } /* Omit closing PHP tag to avoid "Headers already sent" issues. */