If I put the shortcode [wpdts-custom start=”post-created” format=”Y”] in the Woocommerce invoice number, will be displayed The post ID is not accessible. Last year this shortcode worked. The problem appeared in 2024.
The last time we changed something related to the post ID in the plugin was 10 months ago. The change was related exactly to the same issue because someone was asking “why can’t I see the post date of an Woo invoice”. It was because the post ID was not available and the shortcode was just making a log warning (nothing displayed on the page from our plugin). We had no customized message so the user can see what the problem was, and we added the message. Now the problem is clearly visible because if the post ID cannot be fetched via the WordPress get_the_ID() function our plugin is returning the mentioned informative message.
Since we have not changed the code recently, it might be that the provider of the plugin for the invoices is no longer providing the post ID in the context where the [wpdts] shortcode is being used. If this is the case there is not much we can do on our side. You will have to contact the developer of the invoicing plugin and ask them if they can provide the post ID i.e. the $post global to the location on the page where the shortcode is placed.
Thank you for your understanding. Please write back if the problem persists after you contact the invoicing plugin developer and they provide the needed fix or in case that they provide additional helpful information.