Faisal Shikder
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Plugins
In reply to: [Product Table for WooCommerce] How to remove notices about other plugins?remove those lines from woo-product-table.php
//Qty Plus/Minus Button Plugin Compulsory for Our Product Table Plugin $plugin = 'wc-quantity-plus-minus-button/init.php'; $link_text = '<strong><a href="' . esc_url( 'https://wordpress.org/plugins/wc-quantity-plus-minus-button/' ) . '" target="_blank">' . esc_html__( 'Quantity Plus/Minus Button for WooCommerce', 'wpt_pro' ) . '</a></strong>'; //Check Installation of Quantity Plus Minus Button Plugin if( !isset( $installed_plugins[$plugin] ) ) { self::$own['plugin'] = $plugin; self::$own['plugin_slug'] = 'wc-quantity-plus-minus-button'; self::$own['type'] = 'warning'; self::$own['btn_text'] = 'Install Now'; $message = sprintf( esc_html__( '"%1$s" requires "%2$s" to be Installed and Activated.', 'wpt_pro' ), '<strong>' . esc_html__( 'Woo Product Table', 'wpt_pro' ) . '</strong>', $link_text ); self::$own['message'] = $message;//'You to activate your Plugin'; add_action( 'admin_notices', [ $this, 'admin_notice' ] ); } //Check Activation Of that Plugin if( isset( $installed_plugins[$plugin] ) && !is_plugin_active( $plugin ) ) { self::$own['type'] = 'warning'; self::$own['perpose'] = 'activation'; self::$own['plugin'] = 'wc-quantity-plus-minus-button/init.php'; self::$own['btn_text'] = 'Activate Now'; $message = sprintf( /* translators: 1: Plugin name 2: WooPrdouct Table */ esc_html__( '"%1$s" recomends "%2$s" to be activated.', 'wpt_pro' ), '<strong>' . esc_html__( 'Woo Product Table', 'wpt_pro' ) . '</strong>', $link_text ); self::$own['message'] = $message;//'You to activate your Plugin'; add_action( 'admin_notices', [ $this, 'admin_notice' ] ); }
Viewing 1 replies (of 1 total)