Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php //* do not include php tag
- add_filter( 'schema_acf_field_post_type_select_choices', 'schema_acf_field_post_type_select_choices_add_product_45263542' );
- /**
- * Schema Premium Plugin: Add missing post type "product" to Locations post type select choices
- *
- * @since 1.0.0
- */
- function schema_acf_field_post_type_select_choices_add_product_45263542( $post_types ) {
- $post_types[] = array(
- 'value' => 'product',
- 'label' => 'Products'
- );
- return $post_types;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement