add_filter( ‘aioseo_public_post_types’, ‘aioseo_filter_public_post_types’ ); function aioseo_filter_public_post_types( $postTypes ) { $filteredPostTypes = []; foreach ( $postTypes as $postTypeObject ) { if ( is_array( $postTypeObject ) && ‘movie’ === $postTypeObject[‘name’] ) { continue; } $filteredPostTypes[] = $postTypeObject; } return $filteredPostTypes; }Continue reading
add_filter( ‘aioseo_local_business_taxonomy_slug’, ‘aioseo_change_local_business_taxonomy_slug’ ); function aioseo_change_local_business_taxonomy_slug( $slug ) { $slug = ‘franchise-state’; return $slug; }Continue reading
add_filter( ‘aioseo_local_business_taxonomy’, ‘aioseo_change_local_business_taxonomy’ ); function aioseo_change_local_business_taxonomy( $taxonomy ) { $taxonomy[‘hierarchical’] = true; return $taxonomy; }Continue reading
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; }Continue reading
add_filter( ‘aioseo_local_business_post_type_name’, ‘aioseo_change_local_business_post_type_name’ ); function aioseo_change_local_business_post_type_name( $name ) { $name = ‘franchise-location’; return $name; }Continue reading
add_filter(‘the_content’, ‘modify_booking_links’); function modify_booking_links($content) { $content = str_replace( ‘https://hwc.wuyuanweb.com/reservation/’, ‘https://新的網址1.com’, $content ); $content = str_replace( ‘https://hwc.wuyuanweb.com/remote-consultation/’, ‘https://新的網址2.com’, $content ); return $content; }Continue reading
define( ‘WP_POST_REVISIONS’, 4 );Continue reading
/* Increase WordPress upload size, post size, and max execution time Original doc link: https://wpforms.com/how-to-change-max-file-upload-size-in-wordpress/ For support, please visit: https://www.facebook.com/groups/wpformsvip */Continue reading