Rename order status from filter menu from Admin Orders list in Woocommerce
How can I rename and add quick filters to the WooCommerce orders overview:
I've did some research but can't found a solution which I can understand as a beginner in WooCommerce. I already know how to add custom order states so I think it's also very simple because my custom states already exists.
The "Tested" one in the menu has already the name because I've renamed a WooCommerce order status to this name.
php wordpress woocommerce backend orders
add a comment |
How can I rename and add quick filters to the WooCommerce orders overview:
I've did some research but can't found a solution which I can understand as a beginner in WooCommerce. I already know how to add custom order states so I think it's also very simple because my custom states already exists.
The "Tested" one in the menu has already the name because I've renamed a WooCommerce order status to this name.
php wordpress woocommerce backend orders
add a comment |
How can I rename and add quick filters to the WooCommerce orders overview:
I've did some research but can't found a solution which I can understand as a beginner in WooCommerce. I already know how to add custom order states so I think it's also very simple because my custom states already exists.
The "Tested" one in the menu has already the name because I've renamed a WooCommerce order status to this name.
php wordpress woocommerce backend orders
How can I rename and add quick filters to the WooCommerce orders overview:
I've did some research but can't found a solution which I can understand as a beginner in WooCommerce. I already know how to add custom order states so I think it's also very simple because my custom states already exists.
The "Tested" one in the menu has already the name because I've renamed a WooCommerce order status to this name.
php wordpress woocommerce backend orders
php wordpress woocommerce backend orders
edited Nov 16 '18 at 21:37
LoicTheAztec
87k1364101
87k1364101
asked Nov 16 '18 at 19:52
Mr. JoMr. Jo
686115
686115
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
To Rename "fertiggestellt" (Completed) order status in Admin Order list order statuses tab menu use the following:
add_filter( 'gettext', 'rename_woocommerce_order_status', 10, 3 );
add_filter( 'ngettext', 'rename_woocommerce_order_status', 10, 3 );
function rename_woocommerce_order_status( $translated, $text, $domain ) {
if ( strpos($text, 'Completed') !== false ) {
$translated = str_replace('Processing', 'Custom text', $text );
}
if ( strpos($translated, 'fertiggestellt') !== false ) {
$translated = str_replace('fertiggestellt', 'Custom text', $translated );
}
return $translated;
}
Code goes in function.php file of your active child theme (or active theme). Tested and works.
1
Thanks again for your help.. How can I add now the other part of my question?
– Mr. Jo
Nov 16 '18 at 22:39
1
Alright sir. Next question coming in a few seconds.
– Mr. Jo
Nov 16 '18 at 23:05
1
Yes sir. I've just wrote the important things to the new question.
– Mr. Jo
Nov 16 '18 at 23:11
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53344500%2frename-order-status-from-filter-menu-from-admin-orders-list-in-woocommerce%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
To Rename "fertiggestellt" (Completed) order status in Admin Order list order statuses tab menu use the following:
add_filter( 'gettext', 'rename_woocommerce_order_status', 10, 3 );
add_filter( 'ngettext', 'rename_woocommerce_order_status', 10, 3 );
function rename_woocommerce_order_status( $translated, $text, $domain ) {
if ( strpos($text, 'Completed') !== false ) {
$translated = str_replace('Processing', 'Custom text', $text );
}
if ( strpos($translated, 'fertiggestellt') !== false ) {
$translated = str_replace('fertiggestellt', 'Custom text', $translated );
}
return $translated;
}
Code goes in function.php file of your active child theme (or active theme). Tested and works.
1
Thanks again for your help.. How can I add now the other part of my question?
– Mr. Jo
Nov 16 '18 at 22:39
1
Alright sir. Next question coming in a few seconds.
– Mr. Jo
Nov 16 '18 at 23:05
1
Yes sir. I've just wrote the important things to the new question.
– Mr. Jo
Nov 16 '18 at 23:11
add a comment |
To Rename "fertiggestellt" (Completed) order status in Admin Order list order statuses tab menu use the following:
add_filter( 'gettext', 'rename_woocommerce_order_status', 10, 3 );
add_filter( 'ngettext', 'rename_woocommerce_order_status', 10, 3 );
function rename_woocommerce_order_status( $translated, $text, $domain ) {
if ( strpos($text, 'Completed') !== false ) {
$translated = str_replace('Processing', 'Custom text', $text );
}
if ( strpos($translated, 'fertiggestellt') !== false ) {
$translated = str_replace('fertiggestellt', 'Custom text', $translated );
}
return $translated;
}
Code goes in function.php file of your active child theme (or active theme). Tested and works.
1
Thanks again for your help.. How can I add now the other part of my question?
– Mr. Jo
Nov 16 '18 at 22:39
1
Alright sir. Next question coming in a few seconds.
– Mr. Jo
Nov 16 '18 at 23:05
1
Yes sir. I've just wrote the important things to the new question.
– Mr. Jo
Nov 16 '18 at 23:11
add a comment |
To Rename "fertiggestellt" (Completed) order status in Admin Order list order statuses tab menu use the following:
add_filter( 'gettext', 'rename_woocommerce_order_status', 10, 3 );
add_filter( 'ngettext', 'rename_woocommerce_order_status', 10, 3 );
function rename_woocommerce_order_status( $translated, $text, $domain ) {
if ( strpos($text, 'Completed') !== false ) {
$translated = str_replace('Processing', 'Custom text', $text );
}
if ( strpos($translated, 'fertiggestellt') !== false ) {
$translated = str_replace('fertiggestellt', 'Custom text', $translated );
}
return $translated;
}
Code goes in function.php file of your active child theme (or active theme). Tested and works.
To Rename "fertiggestellt" (Completed) order status in Admin Order list order statuses tab menu use the following:
add_filter( 'gettext', 'rename_woocommerce_order_status', 10, 3 );
add_filter( 'ngettext', 'rename_woocommerce_order_status', 10, 3 );
function rename_woocommerce_order_status( $translated, $text, $domain ) {
if ( strpos($text, 'Completed') !== false ) {
$translated = str_replace('Processing', 'Custom text', $text );
}
if ( strpos($translated, 'fertiggestellt') !== false ) {
$translated = str_replace('fertiggestellt', 'Custom text', $translated );
}
return $translated;
}
Code goes in function.php file of your active child theme (or active theme). Tested and works.
answered Nov 16 '18 at 21:35
LoicTheAztecLoicTheAztec
87k1364101
87k1364101
1
Thanks again for your help.. How can I add now the other part of my question?
– Mr. Jo
Nov 16 '18 at 22:39
1
Alright sir. Next question coming in a few seconds.
– Mr. Jo
Nov 16 '18 at 23:05
1
Yes sir. I've just wrote the important things to the new question.
– Mr. Jo
Nov 16 '18 at 23:11
add a comment |
1
Thanks again for your help.. How can I add now the other part of my question?
– Mr. Jo
Nov 16 '18 at 22:39
1
Alright sir. Next question coming in a few seconds.
– Mr. Jo
Nov 16 '18 at 23:05
1
Yes sir. I've just wrote the important things to the new question.
– Mr. Jo
Nov 16 '18 at 23:11
1
1
Thanks again for your help.. How can I add now the other part of my question?
– Mr. Jo
Nov 16 '18 at 22:39
Thanks again for your help.. How can I add now the other part of my question?
– Mr. Jo
Nov 16 '18 at 22:39
1
1
Alright sir. Next question coming in a few seconds.
– Mr. Jo
Nov 16 '18 at 23:05
Alright sir. Next question coming in a few seconds.
– Mr. Jo
Nov 16 '18 at 23:05
1
1
Yes sir. I've just wrote the important things to the new question.
– Mr. Jo
Nov 16 '18 at 23:11
Yes sir. I've just wrote the important things to the new question.
– Mr. Jo
Nov 16 '18 at 23:11
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53344500%2frename-order-status-from-filter-menu-from-admin-orders-list-in-woocommerce%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown