'; echo esc_html__( 'CartPin needs WooCommerce. Please install and activate WooCommerce.', 'cartpin' ); echo '

'; } /** * Whether the Pro add-on is active and licensed. * * @return bool */ public static function is_pro() { /** * Filters whether Pro features are available. * * @param bool $is_pro Default false. */ return (bool) apply_filters( 'satcbar_is_pro', false ); } /** * Whether the Pro add-on is installed and active (licensed or not). * * @return bool */ public static function pro_installed() { return defined( 'SATCBAR_PRO_VERSION' ); } /** * Link to the Pro page. * * @param string $source Where the link is shown, for stats. * @return string */ public static function pro_url( $source = 'plugin' ) { /** * Filters the address of the Pro page. * * @param string $url Address. */ $url = (string) apply_filters( 'satcbar_pro_page_url', 'https://oneclickorderpro.com/cartpin/' ); return add_query_arg( array( 'utm_source' => 'plugin', 'utm_medium' => sanitize_key( $source ), 'utm_campaign' => 'sticky-free', ), $url ); } }