Search
 
SCRIPT & CODE EXAMPLE
 

PHP

retrieve the order Id on Order pay page

global $wp;

if ( isset($wp->query_vars['order-pay']) && absint($wp->query_vars['order-pay']) > 0 ) {
    $order_id = absint($wp->query_vars['order-pay']); // The order ID

    $order    = wc_get_order( $order_id ); // Get the WC_Order Object instance
}
Comment

PREVIOUS NEXT
Code Example
Php :: multiple checked delete in laravel8 
Php :: Required parameter follows optional parameter (500 Internal Server Error) php 
Php :: laravel disable cors 
Php :: laravel where search like with space 
Php :: How to add watermark in FPDF PHP - Parte 2 
Php :: crypt (PHP 4, PHP 5, PHP 7, PHP 8) crypt — One-way string hashing 
Php :: WordPress Emojis abschalten 
Php :: php convert timestamp to datetime 
Php :: section laravel append 
Php :: echo alphabet links 
Php :: Wordpress Scheduled Post to be viewable on front end 
Php :: laravel relationship hasmany 
Php :: This behaviour is (currently) not supported by Doctrine 2 
Php :: get first cat php wp 
Php :: laravel change error page to open in vscode 
Php :: get datetime of excel cell in codeigniter 
Php :: php execute powershell script with parameters 
Php :: Laravel display the date the participation was created 
Php :: laravel faker realtext 
Php :: how to access session value passed to sub domain 
Php :: livewire layout error 
Php :: php populate select from array 
Php :: php explode and typecast 
Php :: PHP how to skip file upload if file already exist 
Php :: Program to Multiply Two Numbers in php 
Php :: 0 == "string" php 
Php :: Remove images from the the_content() 
Php :: wordpress pass parameters variables arguments to enqueued script 
Php :: phpstormda php faylning tepasiga avto kommet yozish 
Php :: how to pass javascript variable to php 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =