Advertisement
wclovers

Untitled

Jul 26th, 2023
685
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.65 KB | None | 0 0
  1. add_filter('wcfmmp_store_setup_steps', function( $steps ) {
  2.     if (isset($steps['introduction'])) {
  3.         $steps['introduction']['view'] = 'modified_wcfmmp_store_setup_introduction';
  4.     }
  5.     return $steps;
  6. } );
  7.  
  8. function modified_wcfmmp_store_setup_introduction( $wcfmmp_store_setup_obj ) {
  9.     $not_right_now_url = site_url( '/member-shortcuts', 'https' );
  10.    
  11.     ?>
  12.     <h1><?php echo apply_filters( 'wcfm_store_setup_welcome_heading', sprintf( __("Welcome to %s!", 'wc-multivendor-marketplace'), get_bloginfo('title') ) ); ?></h1>
  13.     <p><?php echo apply_filters( 'wcfm_store_setup_welcome_message', sprintf( __('Thank you for choosing %s! This quick setup wizard will help you to configure the basic settings and you will have your store ready in no time.', 'wc-multivendor-marketplace'), get_bloginfo('title') ) ); ?></p>
  14.     <p><?php echo esc_html( apply_filters( 'wcfm_store_setup_welcome_footer', __( "If you don't want to go through the wizard right now, you can skip and return to the dashboard. You may setup your store from dashboard &rsaquo; setting anytime!", 'wc-multivendor-marketplace' ) ) ); ?></p>
  15.     <p class="wc-setup-actions step">
  16.         <a href="<?php echo esc_url($wcfmmp_store_setup_obj->get_next_step_link()); ?>" class="button-primary button button-large button-next wcfm_submit_button"><?php esc_html_e("Let's go!", 'wc-frontend-manager'); ?></a>
  17.         <?php if( apply_filters( 'wcfm_is_allow_store_setup_step_skip', true ) ) { ?>
  18.           <a href="<?php echo esc_url($not_right_now_url); ?>" class="button button-large"><?php esc_html_e('Not right now', 'wc-frontend-manager'); ?></a>
  19.         <?php } ?>
  20.     </p>
  21.     <?php
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement