/**
  * Constructor
  *
  * @since 1.0.1
  * @see WC_Memberships_Meta_Box::__construct()
  */
 public function __construct()
 {
     parent::__construct();
     // Add dismissible admin notices for content & product restriction tabs
     wc_memberships()->get_admin_notice_handler()->add_admin_notice(sprintf(__('When you add a restriction rule for content, it will no longer be public on your site. By adding a rule for a page, post, or taxonomy, it will become restricted, and can only be accessed by members of this plan, or by members of another plan that grants access to the content.%sLearn more about %srestriction rules in the documentation%s.', WC_Memberships::TEXT_DOMAIN), '<br /><em>', '<a href="http://docs.woothemes.com/document/woocommerce-memberships-restrict-content/">', '</a></em>'), 'restrict-content-notice', array('always_show_on_settings' => false, 'notice_class' => 'updated force-hide js-memberships-restrict-notice js-memberships-restrict-content-notice'));
     wc_memberships()->get_admin_notice_handler()->add_admin_notice(sprintf(__('When you add a %sviewing%s restriction rule for a product, it will no longer be public on your site, and can only be accessed by members of this plan, or by members of another plan that grants access to the product. By adding a %spurchasing%s restriction rule, the product can be viewed publicly, but only purchased by members.', WC_Memberships::TEXT_DOMAIN), '<strong>', '</strong>', '<strong>', '</strong>'), 'restrict-products-notice', array('always_show_on_settings' => false, 'notice_class' => 'updated force-hide js-memberships-restrict-notice js-memberships-restrict-products-notice'));
     add_action('admin_footer', array($this, 'render_admin_notice_js'), 20);
 }
 /**
  * Constructor
  *
  * @since 1.0.0
  */
 public function __construct()
 {
     $this->screens = array_keys(wc_memberships()->admin->get_valid_post_types_for_content_restriction());
     parent::__construct();
 }