Setup_Status::get_optional_steps()
Summary
No summary available.Source
File: src/BigCommerce/Merchant/Setup_Status.php
public function get_optional_steps() { $steps = []; if ( ! $this->is_ssl() ) { $steps['ssl'] = [ 'heading' => __( 'Add SSL Certificate and enable sitewide HTTPS in BigCommerce store for Embedded Checkout', 'bigcommerce' ), 'icon' => 'cart', ]; } if ( function_exists( 'get_current_screen' ) ) { $screen = get_current_screen(); if ( $screen && $screen->id !== 'bigcommerce_product_page_' . Settings_Screen::NAME ) { $steps['settings'] = [ 'heading' => __( 'Customize Your Store Functionality', 'bigcommerce' ), 'url' => admin_url( 'edit.php?post_type=' . Product::NAME . '&page=' . Settings_Screen::NAME ), 'label' => __( 'Configure', 'bigcommerce' ), 'icon' => 'store-front', ]; } } if ( current_user_can( 'customize' ) ) { $url = filter_input( INPUT_SERVER, 'REQUEST_URI', FILTER_SANITIZE_URL ); $steps['customizer'] = [ 'heading' => __( 'Customize the Look and Feel of Your Store', 'bigcommerce' ), 'url' => add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $url ) ) ), admin_url( 'customize.php' ) ), 'label' => __( 'Customize', 'bigcommerce' ), 'icon' => 'customize', ]; } /** * Filter the array of optional next steps for setting up the * BigCommerce store. * * @var array $steps The optional steps. Each item should be an associative array with: * - heading - The heading text to display for the step * - url - The URL the step's call to action will link to * - label - The text for the call to action */ return apply_filters( 'bigcommerce/settings/next-steps/optional', $steps ); }