do_action( 'appthemes_notices' )


Package


    Description Description

    Premium WordPress Apps

    Top ↑

    User Contributed Notes User Contributed Notes

    1. Skip to note 1 content
      Contributed by admin

      Adds text on the Create listing page. On all steps or a specific one.

      function arthemes_appthemes_notices() {
      
      	// Check if we in a aspecific process.
      	$checkout = appthemes_get_checkout();
      
      	if ( $checkout && 'listing-new' === $checkout->get_checkout_type() ) {
      
      		echo '<p>This text will be shown on all steps of the Create Listing process</p>';
      
      		// Check if we on the specific step of the process.
      		if ( 'select-plan' === _appthemes_get_step_from_query() ) {
      
      			echo '<p>This text will be shown only on the Select Plan step of the Create Listing process</p>';
      
      		}
      	}
      }
      add_action( 'appthemes_notices', 'arthemes_appthemes_notices' );