Last active
December 14, 2016 15:00
-
-
Save deconf/a4bca7530f851662a2d593ed858918ba to your computer and use it in GitHub Desktop.
URI correction for backend Posts/Pages List
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
add_filter( 'gadwp_backenditem_uri', 'gadwp_uri_correction', 10, 2 ); | |
function gadwp_uri_correction( $uri, $filter_id ){ | |
$newuri = str_replace( '/test', '', $uri ); //it could be anything, we are removing /test as an example | |
return $newuri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment