Skip to content
Snippets Groups Projects
Commit 44921923 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Rename our post meta for the order number to not contain spaces.

Apparently, sorting by a post meta will not work if the meta contains spaces...
It seems to be a convention to start all post metas with an underscore and separate each word by an underscore, too...
parent 621448ee
Branches
Tags
No related merge requests found
...@@ -31,7 +31,7 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g ...@@ -31,7 +31,7 @@ if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', g
if (!class_exists("OpenToolsOrdernumbers")) { if (!class_exists("OpenToolsOrdernumbers")) {
class OpenToolsOrdernumbers { class OpenToolsOrdernumbers {
public $ordernumber_meta = "Order Number"; public $ordernumber_meta = "_order_number";
/** /**
* Construct the plugin object * Construct the plugin object
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment