Created
March 4, 2024 18:21
-
-
Save crawford252/c77b62ab66b69494f58389e829bafb91 to your computer and use it in GitHub Desktop.
Divi Change Projects Slug
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 | |
function my_custom_projects_slug( $slug ) { | |
$slug = array( 'slug' => 'custom-slug' ); | |
return $slug; | |
} | |
add_filter( 'et_project_posttype_rewrite_args', 'my_custom_projects_slug', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment