WPIntell

Source evidence

Voucherpress Hooks

VoucherPress · support · 2017-06-22T14:10:00+00:00

complaintsentiment
mediumseverity
0.75relevance
0replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 32 rows with source links

12.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
wilkouk unresolved
Just a small suggestion to change the documentation on ‘Hooks’ for Voucherpress. The ‘add_action’ function requires a parameter if the number of arguments being used is greater than one. Otherwise you only receive 1 value in your bespoke callout function. add_action( string $tag, callable $function_to_add, int $priority = 10, int $accepted_args = 1 ) For example: add_action( ‘voucherpress_download’, ‘my_voucherpress_download_function’ ); function my_voucherpress_download_function( $voucher_id, $voucher_name, $code ) { // do something here… } Will only return a value in $voucher_id It should read: add_action( ‘voucherpress_download’, ‘my_voucherpress_download_function’,10, 3 ); function my_voucherpress_download_function( $voucher_id, $voucher_name, $code ) { // do something here… } Hope that helps others.

Comments

0 shown

No comments were stored for this source.