Skip to content

Instantly share code, notes, and snippets.

@deconf
Last active December 14, 2016 15:00
Show Gist options
  • Save deconf/a4bca7530f851662a2d593ed858918ba to your computer and use it in GitHub Desktop.
Save deconf/a4bca7530f851662a2d593ed858918ba to your computer and use it in GitHub Desktop.
URI correction for backend Posts/Pages List
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