• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WooCommerce a2z

WooCommerce a2z

WooCommerce

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / WC_Abstract_Order::get_status() – Return the order statuses without wc- internal prefix.

You appear to be a bot. Output may be restricted

Description

Return the order statuses without wc- internal prefix.

Usage

$string = WC_Abstract_Order::get_status( $context );

Parameters

$context
( string ) optional default: view – View or edit context.

Returns

string

Source

File name: woocommerce/includes/abstracts/abstract-wc-order.php
Lines:

1 to 9 of 9
  public function get_status( $context = 'view' ) {
    $status = $this->get_prop( 'status', $context );

    if ( empty( $status ) && 'view' === $context ) {
      // In view context, return the default status if no status has been set.
      $status = apply_filters( 'woocommerce_default_order_status', 'pending' );
    }
    return $status;
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 26th November 2019

Primary Sidebar

Information

Function name: WC_Abstract_Order::get_status
Class ref: WC_Abstract_Order
Plugin ref: WooCommerce
Version: 4.8.0
Sourcefile: includes/abstracts/abstract-wc-order.php
File ref: includes/abstracts/abstract-wc-order.php
Deprecated?: No
API Letters: A,G,O,S,W

Footer

WooCommerce a2z
WooCommerce a2z
WooCommerce
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites