Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Created June 27, 2020 05:53
Show Gist options
  • Save KaineLabs/31ee32c23ec11e7d59da8318565bc017 to your computer and use it in GitHub Desktop.
Save KaineLabs/31ee32c23ec11e7d59da8318565bc017 to your computer and use it in GitHub Desktop.
Change Profile Posts Tab Post Type
<?php
/**
* Change Profile Posts Tab Post Type
*/
function yzc_change_posts_tab_post_type() {
// Add Post Type Here Below.
return 'recipes';
}
add_filter( 'yz_profile_posts_tab_post_type', 'yzc_change_posts_tab_post_type' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment