You appear to be a bot. Output may be restricted
Description
Implement the [wf_feedback] shortcodeDisplay the workingFEEDBACK form or the thankyou message if the request contains "returncode" and "rvid"
Usage
oikwf_feedback( $atts );
Parameters
- $atts
- ( array ) optional – the shortcode parameters [wf_feedback apikey=TEST company=8166423 thankyou="Thanks for your feedback" ]
Returns
voidSource
File name: oik-working-feedback/shortcodes/oik-working-feedback.phpLines:
1 to 20 of 20
function oikwf_feedback( $atts=null ) { $apikey = bw_array_get_dcb( $atts, "apikey", "apikey", "oikwf_default_apikey" ); $company = bw_array_get_dcb( $atts, "company", "company", "oikwf_default_company" ); if ( $apikey && $company) { $returncode = bw_array_get( $_REQUEST, "returncode", null ); $rvid = bw_array_get( $_REQUEST, "rvid", null ); if ( $returncode && $rvid ) { $thankyou = bw_array_get_dcb( $atts, "thankyou", "thankyou", "oikwf_default" ); oikwf_workingfeedback_thankyou( $thankyou ); } else { $url = bw_array_get_dcb( $atts, "url", "url", "oikwf_default" ); $return = bw_array_get_dcb( $atts, "return", "return", "oikwf_default" ); oikwf_workingfeedback_form( $url, $apikey, $company, $return ); } } else { p( "wf_feedback shortcode missing apikey= or company= parameters or defaults" ); } return( bw_ret()); }