Created
July 14, 2017 18:49
-
-
Save eduardopintor/1fd6eca05550e174199c38c9b32af24a to your computer and use it in GitHub Desktop.
Filtro para alterar o link de preview de post
This file contains hidden or 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
function elshamah_update_post_link($link) { | |
$link = str_replace(home_url(), site_url(), $link); | |
return $link; | |
} | |
add_action('admin_init', 'elshamah_admin_filters'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment