Filter
rpress_payment_labels
On this page
Filters the labels of the order (rpress_payment) post type.
Runs when the post types are registered on init, before register_post_type() for 'rpress_payment', the post type that stores orders. The array holds the standard post type label keys such as 'name', 'singular_name', 'add_new_item' and 'menu_name'.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$payment_labels | array | Label key => translated string. |
Return value#
array. The labels array.
Example#
add_filter( 'rpress_payment_labels', 'my_payment_labels', 10, 1 );
function my_payment_labels( $payment_labels ) {
$payment_labels['menu_name'] = __( 'Customer Orders', 'my-plugin' );
return $payment_labels;
}
Source#
Applied in:
includes/post-types.php(line 81), inrpress_setup_rpress_post_types()
See also#
Was this page helpful?
