enqueue_scripts(); } public function render_content() { if ( class_exists( 'woocommerce' ) ) { printf( esc_html__( 'You should be able to see the shop section on your front-page. You can configure settings from %s, in your WordPress dashboard.', 'business-a' ), sprintf( '%s', esc_html__( 'Woocommerce > Settings', 'business-a' ) ) ); } else { printf( esc_html__( 'To access shop section in front page, you need to install the %s plugin.','business-a' ), esc_html( 'woocommerce' ) ); echo $this->create_plugin_install_button('woocommerce'); } } public function create_plugin_install_button( $slug ) { return Business_a_Plugin_Install_Helper::instance()->get_button_html( $slug ); } }