Created
February 18, 2022 21:50
-
-
Save gdarko/b00c2614e88ae675b75acd8b96c61c78 to your computer and use it in GitHub Desktop.
Changes the default vimeo video page slug on WP Vimeo Videos plugin
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 | |
/** | |
* Changes the default vimeo video page slug. | |
* @return string | |
*/ | |
function dgv_post_type_slug() { | |
return 'videos'; | |
} | |
add_filter('dgv_post_type_slug', 'dgv_post_type_slug'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@gdarko worked like a charm, thanks!