Last active
June 7, 2025 14:47
-
-
Save mlbd/fe182c8c749cd6cb5e00c98d34f2ddfd to your computer and use it in GitHub Desktop.
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("owf_unset_postmeta", "owf_unset_custom_permalink_meta", 20, 1); | |
function owf_unset_custom_permalink_meta( $post_metas ) { | |
// set custom permalink meta from the post_metas | |
$post_metas[] = 'custom_permalink'; | |
return $post_metas; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment