From 3e6336b1468a97c01e4ee75dca80dd5355d8d67b Mon Sep 17 00:00:00 2001 From: Andrei Glingeanu Date: Wed, 24 Feb 2016 00:25:10 +0200 Subject: [PATCH 1/2] add filter to prepare builder data before display --- class-fw-extension-page-builder.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/class-fw-extension-page-builder.php b/class-fw-extension-page-builder.php index a948a06..4acb1e6 100644 --- a/class-fw-extension-page-builder.php +++ b/class-fw-extension-page-builder.php @@ -284,6 +284,8 @@ private function get_post_content_shortcodes(WP_Post $post) { && $builder_data['builder_active'] ) { + $builder_data = apply_filters('fw_prepare_builder_data_before_display', $builder_data); + /** * We can't store in a post meta the shortcode notation [shortcode attr=""hello..."] * because it's much bigger than the json value. From c386909e106b5bc990b5b0b5eb83c6954c838751 Mon Sep 17 00:00:00 2001 From: Andrei Glingeanu Date: Wed, 24 Feb 2016 17:14:16 +0200 Subject: [PATCH 2/2] rename filter in order to keep up with fw:ext:{extension}:{something} convention --- class-fw-extension-page-builder.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/class-fw-extension-page-builder.php b/class-fw-extension-page-builder.php index 4acb1e6..9b0b42d 100644 --- a/class-fw-extension-page-builder.php +++ b/class-fw-extension-page-builder.php @@ -284,7 +284,10 @@ private function get_post_content_shortcodes(WP_Post $post) { && $builder_data['builder_active'] ) { - $builder_data = apply_filters('fw_prepare_builder_data_before_display', $builder_data); + $builder_data = apply_filters( + 'fw:ext:page-builder:builder-data:before-shortcode-generate', + $builder_data + ); /** * We can't store in a post meta the shortcode notation [shortcode attr=""hello..."]