@@ 1266-1275 (lines=10) @@ | ||
1263 | * |
|
1264 | * @return string The donation ID. |
|
1265 | */ |
|
1266 | function give_get_payment_transaction_id( $payment_id = 0 ) { |
|
1267 | $transaction_id = give_get_meta( $payment_id, '_give_payment_transaction_id', true ); |
|
1268 | ||
1269 | if ( empty( $transaction_id ) ) { |
|
1270 | $gateway = give_get_payment_gateway( $payment_id ); |
|
1271 | $transaction_id = apply_filters( "give_get_payment_transaction_id-{$gateway}", $payment_id ); |
|
1272 | } |
|
1273 | ||
1274 | return $transaction_id; |
|
1275 | } |
|
1276 | ||
1277 | /** |
|
1278 | * Sets a Transaction ID in post meta for the given Payment ID. |
@@ 970-979 (lines=10) @@ | ||
967 | * |
|
968 | * @return bool $ret Whether or not the logged_in_only setting is set |
|
969 | */ |
|
970 | function give_logged_in_only( $form_id ) { |
|
971 | // If _give_logged_in_only is set to enable then guest can donate from that specific form. |
|
972 | // Otherwise it is member only donation form. |
|
973 | $val = give_get_meta( $form_id, '_give_logged_in_only', true ); |
|
974 | $val = ! empty( $val ) ? $val : 'enabled'; |
|
975 | ||
976 | $ret = ! give_is_setting_enabled( $val ); |
|
977 | ||
978 | return (bool) apply_filters( 'give_logged_in_only', $ret, $form_id ); |
|
979 | } |
|
980 | ||
981 | ||
982 | /** |