|
true ), 'objects' );
$selected_post_types = get_option( 'ast_sitemap_post_types', array( 'post', 'page' ) );
foreach ( $post_types as $post_type ) {
printf(
' ',
esc_attr( $post_type->name ),
checked( in_array( $post_type->name, $selected_post_types ), true, false ),
esc_html( $post_type->label )
);
}
?>
|
|
true ), 'objects' );
$selected_taxonomies = get_option( 'ast_sitemap_taxonomies', array( 'category', 'post_tag' ) );
foreach ( $taxonomies as $taxonomy ) {
printf(
' ',
esc_attr( $taxonomy->name ),
checked( in_array( $taxonomy->name, $selected_taxonomies ), true, false ),
esc_html( $taxonomy->label )
);
}
?>
|