Perfect thank you! Just one more question. Now “buy” button just hidden if form not active or payment completed. Is it possible to show my own button like deactivated gray “in reserved” while wp post is active. I think this way client will be feeling more comfortable.
UPD: Sorry I get it by myself, We need just edit this line :
if ( 'publish' !== $status ) {
return '';
}
and just put whatever we need inside return ‘HERE’;
Thank you so much!
-
This reply was modified 2 years, 7 months ago by daykkin.