Home / Admin / Add ‘excerpt’ and ‘page-attributes’ Support to Locations Post Type
Duplicate Snippet

Embed Snippet on Your Site

Add ‘excerpt’ and ‘page-attributes’ Support to Locations Post Type

This filter can be used to add 'excerpt' and 'page-attributes' support to Locations post type

300+
Code Preview
php
<?php
add_filter( 'aioseo_local_business_post_type', 'aioseo_change_local_business_post_type' );
function aioseo_change_local_business_post_type( $post_type ) {
	$post_type['supports'][] = 'excerpt';
	$post_type['supports'][] = 'page-attributes';
	return $post_type;
}

Comments

Add a Comment