|
66 | 66 | * |
67 | 67 | * @since 1.3.0 |
68 | 68 | * |
69 | | - * @param object $response Response data. |
70 | | - * @param array $request_args Request arguments. |
71 | | - * @param array $contact GetResponse contact data. |
72 | | - * @param array $connection Connection data. |
73 | | - * @param array $args Additional arguments. |
| 69 | + * @param object $response Response data. |
| 70 | + * @param array $request_args Request arguments. |
| 71 | + * @param array $contact GetResponse contact data. |
| 72 | + * @param array $connection Connection data. |
| 73 | + * @param array $args Additional arguments. |
| 74 | + * @param mixed $arg6 Test argument. |
| 75 | + * @param mixed $arg7 Test argument. |
| 76 | + * @param mixed $arg8 Test argument. |
| 77 | + * @param mixed $arg9 Test argument. |
| 78 | + * @param mixed $arg10 Test argument. |
| 79 | + * @param mixed $arg11 Test argument. |
| 80 | + * @param mixed $arg12 Test argument. |
| 81 | + * @param mixed $arg13 Test argument. |
74 | 82 | */ |
75 | 83 | do_action( |
76 | 84 | 'wpforms_getresponse_provider_process_task_async_action_subscribe_after', |
77 | 85 | $response, |
78 | 86 | $request_args, |
79 | 87 | $contact, |
80 | 88 | $this->connection, |
81 | | - $this->connection[ $test ], |
82 | | - $this->connection(), |
83 | | - $this->connection( $a, $b, $c ), |
84 | 89 | [ |
85 | 90 | 'form_data' => $this->form_data, |
86 | 91 | 'fields' => $this->fields, |
87 | 92 | 'entry' => $this->entry, |
88 | 93 | ], |
| 94 | + $this->connection[ $test ], |
| 95 | + $this->connection(), |
| 96 | + $this->connection( $a, $b, $c ), |
89 | 97 | function () { |
90 | 98 | return 'true'; |
91 | 99 | }, |
@@ -203,3 +211,27 @@ function () { |
203 | 211 |
|
204 | 212 | /** This filter is documented in wp-includes/post-template.php */ |
205 | 213 | $content = apply_filters( 'the_content', $content ); |
| 214 | + |
| 215 | +/** |
| 216 | + * Allow modifying the text or url for the full page on the AMP pages. |
| 217 | + * |
| 218 | + * @since 1.4.1.1 |
| 219 | + * @since 1.7.1 Added $form_id, $full_page_url, and $form_data arguments. |
| 220 | + * |
| 221 | + * @param int $form_id Form id. |
| 222 | + * @param array $form_data Form data and settings. |
| 223 | + * @param array $form_data Form data and settings. |
| 224 | + * @param array $form_data Form data and settings. |
| 225 | + * |
| 226 | + * @return string |
| 227 | + */ |
| 228 | +$text = (string) apply_filters( |
| 229 | + 'wpforms_frontend_shortcode_amp_text', |
| 230 | + sprintf( /* translators: %s - URL to a non-amp version of a page with the form. */ |
| 231 | + __( '<a href="%s">Go to the full page</a> to view and submit the form.', 'wpforms-lite' ), |
| 232 | + esc_url( $full_page_url ) |
| 233 | + ), |
| 234 | + $form_id, |
| 235 | + $full_page_url, |
| 236 | + $form_data |
| 237 | +); |
0 commit comments