Plugin Directory

Changeset 2742089


Ignore:
Timestamp:
06/14/2022 08:42:48 AM (4 years ago)
Author:
serviceslbk
Message:

v1.1.5

Location:
lbk-faqs-schema/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lbk-faqs-schema/trunk/includes/class.admin.php

    r2736707 r2742089  
    4141         */
    4242        public function lbk_custom_faqs() {
    43             add_meta_box(
    44                 '_lbk-custom-faq',
    45                 'Custom FAQs',
    46                 array( $this, 'lbk_custom_faq_inner'),
    47                 array( 'post', 'product', 'page' ),
    48                 'normal',
    49                 'default'
    50             );
     43          if ( class_exists( 'lbkFAQsPro' ) ) $post_types = get_option("lbk_post_types_enable_faqs");
     44          else $post_types = array( 'post', 'product', 'page' );
     45          add_meta_box(
     46            '_lbk-custom-faq',
     47            'Custom FAQs',
     48            array( $this, 'lbk_custom_faq_inner'),
     49            $post_types,
     50            'normal',
     51            'default'
     52          );
    5153        }
    5254
Note: See TracChangeset for help on using the changeset viewer.