Home / Admin / Change Default Post Type Slug “location”
Duplicate Snippet

Embed Snippet on Your Site

Change Default Post Type Slug “location”

This filter can be used to change the default post type slug from “location” to 'franchise'.

<10
Code Preview
php
<?php
add_filter( 'aioseo_local_business_post_type_slug', 'aioseo_change_local_business_post_type_slug' );
function aioseo_change_local_business_post_type_slug( $slug ) {
	$slug = 'franchise';
	return $slug;
}

Comments

Add a Comment