2021-01-10 15:09:23

Related Docs

Do You Need Help or Expertise?

Is editing Source Code not Your Thing? Are you in a tight Time Schedule and need to deliver a fully scalable and safe solution fast to your Clients?

Maybe you want to incorporate the Software found on TukuToi unbranded and royalty free in your Clients Projects after customizing it as per your Projects requirements?

Or eventually you need some training on any WordPress Plugin, Theme or their creation and maintenance?

FilterRename Registered Post Types

add_filter( 'register_post_type_args', 'rename_registered_post_types', 999, 2 );

function rename_registered_post_types( $args, $post_type ){
    if( 'post' == $post_type ){//your post type to rename
        $args['rewrite']['slug'] = 'your_custom_slug';
    return $args;