Try this way, it’s not the proper way to figure it out but it will solve your problem.
function citrusafterpayment_function()
{
static $calls = 0;
if($calls == 0){ $calls++;
mail('[email protected]','check-in','asd');
global $wpdb;
if(isset($_REQUEST['TxStatus']) && $_REQUEST['TxStatus'] != '')
{
if($_REQUEST['TxStatus'] == 'CANCELED')
{
$return_msg = '<div class="row-fluid"><div class="span12"> <div class="error">You have canceled your transaction.</div></div></div>';
return $return_msg;
}
}
}
}
Edited:
You should pass: $_REQUEST['TxStatus']
in the if statement $TxStatus
is not defined in the function.
Related Posts:
- Autogenerate wordpress shortcodes using array?
- Shortcode display outside the div
- Shortcode under a Shortcode Multiple times Possible?
- Trying to count the total number of paragraphs inside a blog article
- May i Use ShortCode in Template?
- Prevent shortcode from being wrapped in tags
- Adding Shortcode to Text Widget
- Snippets: is it better to add them in functions.php or make site-specific plugins?
- creating html reusable blocks via shortcodes
- Nested shortcode functions accessing variable
- Calling an attribute from a plugin shortcode
- Redirect to another page using contact form 7? [closed]
- What is @Action in WordPress?
- Return multiple values in a shortcode attribute
- Shortcode Attributes to Return different $_POST
- strange shortcode error: does shortcodes requires any dependency?
- Add the_post_thumbnail_url to a shortcode in function.php
- Adding a Tag Parameter / Filter to My Shortcode
- grab or load text on demand
- Elementor Pro display featured image on section -> style -> image using shortcode
- How to get current cart values using WC_Shortcodes?
- Get Shortcode output to database for static post_content
- Find all strings between an enclosing shortcode
- Posting code inside the post instead of in the template file using shortcode
- Integrate Razorpay quick payments plugin with contact form7 plugin
- Shortcode cannot parse attributes within double quotes. ” is becoming ” breaking my shortcode
- How to export comments in WordPress?
- How can I call a function from one plugin within another plugin?
- Gutenberg disallow certain custom blocks but keep all core blocks?
- Publish author posts only with editor approval?
- Customizing subject in comment notification e-mails
- All shortcodes not working on custom theme
- enqueue script only if it is not already enqueue
- How to parse nested shortcodes?
- Generate Advanced Custom Fields box in custom admin menu page
- Removing user contact methods works from functions.php but not from a plugin
- change plugin shortcode function [closed]
- Dynamic HTML not displaying at respective place
- Use functionality of 2 wordpress plugins
- Short code for Venues
- Set WordPress Featured Image For All Post Slugs Matching Image File Name in Specified Directory
- jQuery Plugin to use WordPress functions in AJAX request
- Debugging Technique Question re: functions.php
- Custom Taxonomy Tag Search
- Redeclare theme’s function in a plugin
- I have functions in my wordpress plugin. How do I get them to work for me?
- How to generate CSS from a shortcode within a plugin
- How to remove html code in excel downloads using phpspreadsheet with wordpress plugins shortcode
- How to override a plugin function wrapped in a class?
- Edit Yoast SEO breadcrumbs output [closed]
- How to put JQuery/Ajax inside shortcode?
- Trouble with editing template for “List category posts” plugin
- WordPress function not being called from jQuery method
- Using a post-signup hook to get user details
- Facebook Messager Plugin
- Making sure that a plugin’s scripts and stylesheets are included for dynamicaly loaded content
- Use $_GET inside a shortcode print empty Array
- Render Modula Plugin Shortcode On Ajax Request
- Shortcode not getting replaced
- Basics of changing plugin output
- Why can’t I call a (member) function from within a foreach?
- Plugin onclick button activate other plugin
- Activate and deactivate plugin automatically
- Get param from shortcode in plugin function
- dynamic name of the style for wp_enqueue_style
- WordPress function to add text warning on every pages [closed]
- Inserting shortcode in href – any ideas or workarounds?
- Load CSS files in header of Bones theme?
- Call javascript functions from each page
- Add_image_size not generating correct size
- Filters on the_content with plugins, pages and shortcode
- Which is a better practice when writing shortcodes: pack lots of configuration parameters or just give an id?
- How to make WooCommerce payment method field optional?
- WordPress Custom Hook with Class method
- Allow a particular user to access a particular plugin?
- how to define a html folder to make it work with WordPress commands
- add a hook of Woocommerce to a plugin but it only shows and doesn’t function properly
- How do I use a plugin’s shortcode attribute value in another function?
- ACF Fields are not showing up on Homepage
- Image path in childs theme
- Securing langugae folder
- Call function with button and return response
- Return function results within shortcode
- Page takes on two different formats
- Why is WP template_include overwritting all templates rather than specified page?
- Sanitize AROUND shortcode
- Get not the full path
- How to Call Function From Separate WordPress Install on Same Server?
- Sending post data over REST API, how to parse shortcodes in post_content?
- How to echo a plugin’s function into a template?
- Is there a function to search for a wildcard value when calling a shortcode?
- How to load a plugin when doing an Ajax call? [duplicate]
- Is it right way to create shortcode?
- Creating Features List in WordPress Post
- wordpress Search function is not working
- I am experiencing difficulty fulfilling client request
- PHP Creating a formula from mysql db values and db stored math operator
- How to disable plugin capability : “create new category”
- Option value not getting updated until page refresh in WordPress
- WordPress Custom Page Blog Template Pagination Problem (Pagination Not Displaying)