__( 'Wishlists', 'ti-woocommerce-wishlist' ), 'method' => [ $this, '_print_' ], 'slug' => 'wishlists', 'capability' => 'tinvwl_wishlists', 'roles' => [ 'administrator', 'shop_manager' ], ]; } /** * General page wishlists * * @param int $id Id parameter. * @param string $cat Category parameter. */ public function _print_general( int $id = 0, string $cat = '' ): void { $data = [ '_header' => __( 'Manage wishlists', 'ti-woocommerce-wishlist' ) . '* ' . __( 'premium only', 'ti-woocommerce-wishlist' ) . '', ]; $data = apply_filters( 'tinvwl_wishlist_general', $data ); TInvWL_View::render( 'wishlists', $data ); } }