Skip to content

Commit ee8fc03

Browse files
committed
Add filter to form action url
1 parent fdb2abc commit ee8fc03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/abstracts/abstract-wpum-form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function show_errors() {
148148
* @return string
149149
*/
150150
public function get_action() {
151-
return esc_url_raw( $this->action ? $this->action : wp_unslash( $_SERVER['REQUEST_URI'] ) );
151+
return apply_filters( 'wpum_form_action', esc_url_raw( $this->action ? $this->action : wp_unslash( $_SERVER['REQUEST_URI'] ) ), $this );
152152
}
153153

154154
/**

0 commit comments

Comments
 (0)