Skip to content

Commit 24a2431

Browse files
author
Antti Kuosmanen
committed
Change order of wplf_form filters
1 parent a558576 commit 24a2431

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

classes/class-cpt-wplf-form.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,10 +507,12 @@ function wplf_form( $id, $content = '', $xclass = '', $attributes = [] ) {
507507
}
508508

509509
// filter content html
510-
$content = apply_filters( 'wplf_form', $content );
511510
$content = apply_filters( "wplf_{$form->post_name}_form", $content );
512511
$content = apply_filters( "wplf_{$form->ID}_form", $content );
513512

513+
// run default filters after. The user probably wants to filter original content, not modified by WP
514+
$content = apply_filters( 'wplf_form', $content );
515+
514516
ob_start();
515517
?>
516518
<form

0 commit comments

Comments
 (0)