Created
January 18, 2016 11:23
-
-
Save ThierryA/846f2d29b4ade4ef7c4c to your computer and use it in GitHub Desktop.
Beans: remove post more link #more-{id} anchor.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Do not include the opening php tag if it is already included in your file. | |
add_filter( 'beans_post_more_link_attributes', 'beans_child_post_more_link_attributes' ); | |
function beans_child_post_more_link_attributes( $attributes ) { | |
$attributes['href'] = esc_url( get_permalink() ); | |
return $attributes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment