woocommerce_my_account_my_orders_title
The WooCommerce Upload My File woocommerce my account orders title hook.
Description
Parameters (1)
- 0. $var (unknown) =>
__( 'Recent Orders', 'woocommerce' )
- The var.
Usage
- To run the hook, copy the example below.
- $var = apply_filters( 'woocommerce_my_account_my_orders_title', $var );
- if ( !empty( $var ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the woocommerce_my_account_my_orders_title callback
- function filter_woocommerce_my_account_my_orders_title( $var ) {
- // make filter magic happen here...
- return $var;
- };
- // add the filter
- add_filter( 'woocommerce_my_account_my_orders_title', 'filter_woocommerce_my_account_my_orders_title', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'woocommerce_my_account_my_orders_title', 'filter_woocommerce_my_account_my_orders_title', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /templates/myaccount/my-orders.php
- <h2><?php echo apply_filters( 'woocommerce_my_account_my_orders_title', __( 'Recent Orders', 'woocommerce' ) ); ?></h2>