diff --git a/assets/images/templates/guest-post-recurring.svg b/assets/images/templates/guest-post-recurring.svg
new file mode 100644
index 000000000..6e6d3a206
--- /dev/null
+++ b/assets/images/templates/guest-post-recurring.svg
@@ -0,0 +1,62 @@
+
diff --git a/assets/images/templates/paid-guest-post.svg b/assets/images/templates/paid-guest-post.svg
new file mode 100644
index 000000000..76f92fd12
--- /dev/null
+++ b/assets/images/templates/paid-guest-post.svg
@@ -0,0 +1,64 @@
+
diff --git a/assets/images/templates/testimonial.svg b/assets/images/templates/testimonial.svg
new file mode 100644
index 000000000..ce981ff76
--- /dev/null
+++ b/assets/images/templates/testimonial.svg
@@ -0,0 +1,87 @@
+
diff --git a/includes/Admin/Forms/Post/Templates/Post_Form_Template_Guest_Post_Recurring.php b/includes/Admin/Forms/Post/Templates/Post_Form_Template_Guest_Post_Recurring.php
new file mode 100644
index 000000000..c79bbae5e
--- /dev/null
+++ b/includes/Admin/Forms/Post/Templates/Post_Form_Template_Guest_Post_Recurring.php
@@ -0,0 +1,212 @@
+enabled = true;
+ $this->title = __( 'Guest Post (Recurring Subscription)', 'wp-user-frontend' );
+ $this->description = __( 'Accept guest post submissions with a mandatory recurring subscription. Collects title, content, excerpt, featured image, category, and tags.', 'wp-user-frontend' );
+ $this->image = WPUF_ASSET_URI . '/images/templates/guest-post-recurring.svg';
+
+ $this->form_fields = [
+ [
+ 'input_type' => 'text',
+ 'template' => 'post_title',
+ 'required' => 'yes',
+ 'label' => __( 'Post Title', 'wp-user-frontend' ),
+ 'name' => 'post_title',
+ 'is_meta' => 'no',
+ 'help' => __( 'Choose a compelling and descriptive title for your guest post.', 'wp-user-frontend' ),
+ 'css' => '',
+ 'placeholder' => __( 'Enter your article title here', 'wp-user-frontend' ),
+ 'default' => '',
+ 'size' => '40',
+ 'wpuf_cond' => $this->conditionals,
+ 'wpuf_visibility' => $this->get_default_visibility_prop(),
+ 'restriction_to' => 'max',
+ 'restriction_type' => 'character',
+ 'width' => 'large',
+ ],
+ [
+ 'input_type' => 'textarea',
+ 'template' => 'post_content',
+ 'required' => 'yes',
+ 'label' => __( 'Post Content', 'wp-user-frontend' ),
+ 'name' => 'post_content',
+ 'is_meta' => 'no',
+ 'help' => __( 'Provide the full content of your guest post. Ensure it\'s well-written and relevant.', 'wp-user-frontend' ),
+ 'css' => '',
+ 'rows' => '5',
+ 'cols' => '25',
+ 'placeholder' => __( 'Write your article content here', 'wp-user-frontend' ),
+ 'default' => '',
+ 'rich' => 'yes',
+ 'insert_image' => 'yes',
+ 'wpuf_cond' => $this->conditionals,
+ 'wpuf_visibility' => $this->get_default_visibility_prop(),
+ 'restriction_to' => 'max',
+ 'restriction_type' => 'character',
+ 'text_editor_control' => [],
+ 'width' => 'large',
+ ],
+ [
+ 'input_type' => 'textarea',
+ 'template' => 'post_excerpt',
+ 'required' => 'no',
+ 'label' => __( 'Post Excerpt', 'wp-user-frontend' ),
+ 'name' => 'post_excerpt',
+ 'is_meta' => 'no',
+ 'help' => __( 'A short summary of your post, usually displayed on archive pages. Keep it concise.', 'wp-user-frontend' ),
+ 'css' => '',
+ 'rows' => '5',
+ 'cols' => '25',
+ 'placeholder' => __( 'Enter a brief summary here', 'wp-user-frontend' ),
+ 'default' => '',
+ 'rich' => 'no',
+ 'wpuf_cond' => $this->conditionals,
+ 'wpuf_visibility' => $this->get_default_visibility_prop(),
+ 'restriction_to' => 'max',
+ 'restriction_type' => 'character',
+ 'text_editor_control' => [],
+ 'width' => 'large',
+ ],
+ [
+ 'input_type' => 'image_upload',
+ 'template' => 'featured_image',
+ 'count' => '1',
+ 'required' => 'yes',
+ 'label' => __( 'Featured Image', 'wp-user-frontend' ),
+ 'button_label' => __( 'Featured Image', 'wp-user-frontend' ),
+ 'name' => 'featured_image',
+ 'is_meta' => 'no',
+ 'help' => __( 'Select an image that best represents your article. This will be the main image for your post.', 'wp-user-frontend' ),
+ 'css' => '',
+ 'max_size' => '1024',
+ 'wpuf_cond' => $this->conditionals,
+ 'wpuf_visibility' => $this->get_default_visibility_prop(),
+ 'width' => 'large',
+ ],
+ [
+ 'input_type' => 'taxonomy',
+ 'template' => 'taxonomy',
+ 'required' => 'yes',
+ 'label' => __( 'Category', 'wp-user-frontend' ),
+ 'name' => 'category',
+ 'is_meta' => 'no',
+ 'help' => __( 'Choose the most relevant category for your guest post.', 'wp-user-frontend' ),
+ 'first' => __( 'Select a category', 'wp-user-frontend' ),
+ 'css' => '',
+ 'type' => 'select',
+ 'orderby' => 'name',
+ 'order' => 'ASC',
+ 'exclude_type' => 'exclude',
+ 'exclude' => [],
+ 'woo_attr' => 'no',
+ 'woo_attr_vis' => 'no',
+ 'options' => [],
+ 'wpuf_cond' => $this->conditionals,
+ 'wpuf_visibility' => $this->get_default_visibility_prop(),
+ 'width' => 'large',
+ 'show_inline' => false,
+ ],
+ [
+ 'input_type' => 'text',
+ 'template' => 'post_tags',
+ 'required' => 'no',
+ 'label' => __( 'Tags', 'wp-user-frontend' ),
+ 'name' => 'tags',
+ 'is_meta' => 'no',
+ 'help' => __( 'Add relevant keywords or phrases that describe your post.', 'wp-user-frontend' ),
+ 'css' => '',
+ 'placeholder' => __( 'Enter tags (comma-separated)', 'wp-user-frontend' ),
+ 'default' => '',
+ 'size' => '40',
+ 'wpuf_cond' => $this->conditionals,
+ 'wpuf_visibility' => $this->get_default_visibility_prop(),
+ 'width' => 'large',
+ ],
+ ];
+
+ $this->form_settings = [
+ 'post_type' => 'post',
+ 'post_status' => 'draft',
+ 'default_cat' => '-1',
+ 'post_permission' => 'guest_post',
+ 'guest_post' => 'true',
+ 'guest_details' => 'on',
+ 'name_label' => __( 'Name', 'wp-user-frontend' ),
+ 'email_label' => __( 'E-Mail', 'wp-user-frontend' ),
+ 'guest_email_verify' => 'on',
+ 'message_restrict' => __( 'This page is restricted. Please {login} / {register} to view this page.', 'wp-user-frontend' ),
+ 'redirect_to' => 'post',
+ 'comment_status' => 'open',
+ 'show_form_title' => 'true',
+ 'form_description' => __( 'Submit your guest post (this submission is under your active subscription plan). Include your article content, tags, excerpt, and featured image.', 'wp-user-frontend' ),
+ 'submit_text' => __( 'Submit Guest Post', 'wp-user-frontend' ),
+ 'submit_button_cond' => [
+ 'condition_status' => 'no',
+ 'cond_logic' => 'any',
+ 'conditions' => [
+ [
+ 'name' => '',
+ 'operator' => '=',
+ 'option' => '',
+ ],
+ ],
+ ],
+ 'draft_post' => 'true',
+ 'edit_post_status' => 'draft',
+ 'edit_redirect_to' => 'same',
+ 'update_message' => __( 'Post has been updated successfully. View post', 'wp-user-frontend' ),
+ 'edit_url' => '',
+ 'update_text' => __( 'Update Post', 'wp-user-frontend' ),
+ 'payment_options' => 'true',
+ 'choose_payment_option' => 'force_pack_purchase',
+ 'force_pack_purchase' => 'true',
+ 'enable_pay_per_post' => 'false',
+ 'fallback_ppp_enable' => 'on',
+ 'use_theme_css' => 'wpuf-style',
+ 'form_layout' => 'layout1',
+ 'form_template' => 'post_form_template_guest_post_recurring',
+ 'notification' => [
+ 'new' => 'on',
+ 'new_to' => get_option( 'admin_email' ),
+ 'new_subject' => 'New guest post submission (subscription)',
+ 'new_body' => 'Hi,
+A new guest post has been submitted to your site {sitename} ({siteurl}).
+
+Here are the details:
+Post Title: {post_title}
+Description: {post_content}
+Short Description: {post_excerpt}
+Author: {author}
+Post URL: {permalink}
+Edit URL: {editlink}',
+ 'edit' => 'on',
+ 'edit_to' => get_option( 'admin_email' ),
+ 'edit_subject' => 'Guest post has been updated',
+ 'edit_body' => 'Hi,
+The guest post "{post_title}" has been updated.
+
+Here are the details:
+Post Title: {post_title}
+Description: {post_content}
+Short Description: {post_excerpt}
+Author: {author}
+Post URL: {permalink}
+Edit URL: {editlink}',
+ ],
+ ];
+ }
+}
diff --git a/includes/Admin/Forms/Post/Templates/Post_Form_Template_Paid_Guest_Post.php b/includes/Admin/Forms/Post/Templates/Post_Form_Template_Paid_Guest_Post.php
new file mode 100644
index 000000000..6421281f7
--- /dev/null
+++ b/includes/Admin/Forms/Post/Templates/Post_Form_Template_Paid_Guest_Post.php
@@ -0,0 +1,213 @@
+enabled = true;
+ $this->title = __( 'Paid Guest Post', 'wp-user-frontend' );
+ $this->description = __( 'Accept guest post submissions with one-time payment. Collects title, content, excerpt, featured image, category, and tags.', 'wp-user-frontend' );
+ $this->image = WPUF_ASSET_URI . '/images/templates/paid-guest-post.svg';
+
+ $this->form_fields = [
+ [
+ 'input_type' => 'text',
+ 'template' => 'post_title',
+ 'required' => 'yes',
+ 'label' => __( 'Post Title', 'wp-user-frontend' ),
+ 'name' => 'post_title',
+ 'is_meta' => 'no',
+ 'help' => __( 'Choose a compelling and descriptive title for your guest post.', 'wp-user-frontend' ),
+ 'css' => '',
+ 'placeholder' => __( 'Enter your article title here', 'wp-user-frontend' ),
+ 'default' => '',
+ 'size' => '40',
+ 'wpuf_cond' => $this->conditionals,
+ 'wpuf_visibility' => $this->get_default_visibility_prop(),
+ 'restriction_to' => 'max',
+ 'restriction_type' => 'character',
+ 'width' => 'large',
+ ],
+ [
+ 'input_type' => 'textarea',
+ 'template' => 'post_content',
+ 'required' => 'yes',
+ 'label' => __( 'Post Content', 'wp-user-frontend' ),
+ 'name' => 'post_content',
+ 'is_meta' => 'no',
+ 'help' => __( 'Provide the full content of your guest post. Ensure it\'s well-written and relevant.', 'wp-user-frontend' ),
+ 'css' => '',
+ 'rows' => '5',
+ 'cols' => '25',
+ 'placeholder' => __( 'Write your article content here', 'wp-user-frontend' ),
+ 'default' => '',
+ 'rich' => 'yes',
+ 'insert_image' => 'yes',
+ 'wpuf_cond' => $this->conditionals,
+ 'wpuf_visibility' => $this->get_default_visibility_prop(),
+ 'restriction_to' => 'max',
+ 'restriction_type' => 'character',
+ 'text_editor_control' => [],
+ 'width' => 'large',
+ ],
+ [
+ 'input_type' => 'textarea',
+ 'template' => 'post_excerpt',
+ 'required' => 'no',
+ 'label' => __( 'Post Excerpt', 'wp-user-frontend' ),
+ 'name' => 'post_excerpt',
+ 'is_meta' => 'no',
+ 'help' => __( 'A short summary of your post, usually displayed on archive pages. Keep it concise.', 'wp-user-frontend' ),
+ 'css' => '',
+ 'rows' => '5',
+ 'cols' => '25',
+ 'placeholder' => __( 'Enter a brief summary here', 'wp-user-frontend' ),
+ 'default' => '',
+ 'rich' => 'no',
+ 'wpuf_cond' => $this->conditionals,
+ 'wpuf_visibility' => $this->get_default_visibility_prop(),
+ 'restriction_to' => 'max',
+ 'restriction_type' => 'character',
+ 'text_editor_control' => [],
+ 'width' => 'large',
+ ],
+ [
+ 'input_type' => 'image_upload',
+ 'template' => 'featured_image',
+ 'count' => '1',
+ 'required' => 'yes',
+ 'label' => __( 'Featured Image', 'wp-user-frontend' ),
+ 'button_label' => __( 'Featured Image', 'wp-user-frontend' ),
+ 'name' => 'featured_image',
+ 'is_meta' => 'no',
+ 'help' => __( 'Select an image that best represents your article. This will be the main image for your post.', 'wp-user-frontend' ),
+ 'css' => '',
+ 'max_size' => '1024',
+ 'wpuf_cond' => $this->conditionals,
+ 'wpuf_visibility' => $this->get_default_visibility_prop(),
+ 'width' => 'large',
+ ],
+ [
+ 'input_type' => 'taxonomy',
+ 'template' => 'taxonomy',
+ 'required' => 'yes',
+ 'label' => __( 'Category', 'wp-user-frontend' ),
+ 'name' => 'category',
+ 'is_meta' => 'no',
+ 'help' => __( 'Choose the most relevant category for your guest post.', 'wp-user-frontend' ),
+ 'first' => __( 'Select a category', 'wp-user-frontend' ),
+ 'css' => '',
+ 'type' => 'select',
+ 'orderby' => 'name',
+ 'order' => 'ASC',
+ 'exclude_type' => 'exclude',
+ 'exclude' => [],
+ 'woo_attr' => 'no',
+ 'woo_attr_vis' => 'no',
+ 'options' => [],
+ 'wpuf_cond' => $this->conditionals,
+ 'wpuf_visibility' => $this->get_default_visibility_prop(),
+ 'width' => 'large',
+ 'show_inline' => false,
+ ],
+ [
+ 'input_type' => 'text',
+ 'template' => 'post_tags',
+ 'required' => 'no',
+ 'label' => __( 'Tags', 'wp-user-frontend' ),
+ 'name' => 'tags',
+ 'is_meta' => 'no',
+ 'help' => __( 'Add relevant keywords or phrases that describe your post.', 'wp-user-frontend' ),
+ 'css' => '',
+ 'placeholder' => __( 'Enter tags (comma-separated)', 'wp-user-frontend' ),
+ 'default' => '',
+ 'size' => '40',
+ 'wpuf_cond' => $this->conditionals,
+ 'wpuf_visibility' => $this->get_default_visibility_prop(),
+ 'width' => 'large',
+ ],
+ ];
+
+ $this->form_settings = [
+ 'post_type' => 'post',
+ 'post_status' => 'draft',
+ 'default_cat' => '-1',
+ 'post_permission' => 'guest_post',
+ 'guest_post' => 'true',
+ 'guest_details' => 'on',
+ 'name_label' => __( 'Name', 'wp-user-frontend' ),
+ 'email_label' => __( 'E-Mail', 'wp-user-frontend' ),
+ 'guest_email_verify' => 'on',
+ 'message_restrict' => __( 'This page is restricted. Please {login} / {register} to view this page.', 'wp-user-frontend' ),
+ 'redirect_to' => 'post',
+ 'comment_status' => 'closed',
+ 'show_form_title' => 'true',
+ 'form_description' => __( 'Submit your guest article with a one-time payment. Include your title, content, excerpt, tags, and featured image.', 'wp-user-frontend' ),
+ 'submit_text' => __( 'Submit Guest Post', 'wp-user-frontend' ),
+ 'submit_button_cond' => [
+ 'condition_status' => 'no',
+ 'cond_logic' => 'any',
+ 'conditions' => [
+ [
+ 'name' => '',
+ 'operator' => '=',
+ 'option' => '',
+ ],
+ ],
+ ],
+ 'draft_post' => 'true',
+ 'edit_post_status' => 'draft',
+ 'edit_redirect_to' => 'same',
+ 'update_message' => __( 'Post has been updated successfully. View post', 'wp-user-frontend' ),
+ 'edit_url' => '',
+ 'update_text' => __( 'Update Post', 'wp-user-frontend' ),
+ 'payment_options' => 'true',
+ 'choose_payment_option' => 'enable_pay_per_post',
+ 'force_pack_purchase' => 'false',
+ 'enable_pay_per_post' => 'true',
+ 'pay_per_post_cost' => '5',
+ 'fallback_ppp_enable' => 'false',
+ 'use_theme_css' => 'wpuf-style',
+ 'form_layout' => 'layout1',
+ 'form_template' => 'post_form_template_paid_guest_post',
+ 'notification' => [
+ 'new' => 'on',
+ 'new_to' => get_option( 'admin_email' ),
+ 'new_subject' => 'New guest post submission',
+ 'new_body' => 'Hi,
+A new guest post has been submitted to your site {sitename} ({siteurl}).
+
+Here are the details:
+Post Title: {post_title}
+Description: {post_content}
+Short Description: {post_excerpt}
+Author: {author}
+Post URL: {permalink}
+Edit URL: {editlink}',
+ 'edit' => 'on',
+ 'edit_to' => get_option( 'admin_email' ),
+ 'edit_subject' => 'Guest post has been updated',
+ 'edit_body' => 'Hi,
+The guest post "{post_title}" has been updated.
+
+Here are the details:
+Post Title: {post_title}
+Description: {post_content}
+Short Description: {post_excerpt}
+Author: {author}
+Post URL: {permalink}
+Edit URL: {editlink}',
+ ],
+ ];
+ }
+}
diff --git a/includes/Admin/Forms/Post/Templates/Pro_Form_Preview_Testimonial.php b/includes/Admin/Forms/Post/Templates/Pro_Form_Preview_Testimonial.php
new file mode 100644
index 000000000..3ffa45e78
--- /dev/null
+++ b/includes/Admin/Forms/Post/Templates/Pro_Form_Preview_Testimonial.php
@@ -0,0 +1,69 @@
+title = __( 'Testimonial Submission', 'wp-user-frontend' );
+ $this->image = WPUF_ASSET_URI . '/images/templates/testimonial.svg';
+ $this->pro_icon = WPUF_ASSET_URI . '/images/templates/crown.svg';
+ }
+
+ /**
+ * Get the template title
+ *
+ * @since WPUF_SINCE
+ *
+ * @return string
+ */
+ public function get_title() {
+ return $this->title ? $this->title : '';
+ }
+
+ /**
+ * Get the template image
+ *
+ * @since WPUF_SINCE
+ *
+ * @return string
+ */
+ public function get_image() {
+ return $this->image ? $this->image : '';
+ }
+
+ /**
+ * Get the pro icon
+ *
+ * @since WPUF_SINCE
+ *
+ * @return string
+ */
+ public function get_pro_icon() {
+ return $this->pro_icon ? $this->pro_icon : '';
+ }
+}
diff --git a/includes/Free/Free_Loader.php b/includes/Free/Free_Loader.php
index 6134c08f9..f271c2544 100644
--- a/includes/Free/Free_Loader.php
+++ b/includes/Free/Free_Loader.php
@@ -8,6 +8,7 @@
use WeDevs\Wpuf\Admin\Forms\Post\Templates\Pro_Form_Preview_Portfolio;
use WeDevs\Wpuf\Admin\Forms\Post\Templates\Pro_Form_Preview_Press_Release;
use WeDevs\Wpuf\Admin\Forms\Post\Templates\Pro_Form_Preview_Professional_Video;
+use WeDevs\Wpuf\Admin\Forms\Post\Templates\Pro_Form_Preview_Testimonial;
use WeDevs\Wpuf\Admin\Forms\Post\Templates\Pro_Form_Preview_Volunteer;
use WeDevs\Wpuf\Pro\Admin\Coupon_Elements;
use WeDevs\Wpuf\Hooks\Form_Settings_Cleanup;
@@ -227,49 +228,49 @@ public function pro_sections( $sections ) {
$new_sections = [
[
'id' => 'wpuf_sms',
- 'title' => __( 'SMS', 'wp-user-frontend' ) . ' ' . '
' . '',
+ 'title' => __( 'SMS', 'wp-user-frontend' ) . '
',
'icon' => 'dashicons-format-status',
'class' => 'pro-preview-html',
'is_pro_preview' => true,
],
[
'id' => 'wpuf_social_api',
- 'title' => __( 'Social Login', 'wp-user-frontend' ) . ' ' . '
' . '',
+ 'title' => __( 'Social Login', 'wp-user-frontend' ) . '
',
'icon' => 'dashicons-share',
'class' => 'pro-preview-html',
'is_pro_preview' => true,
],
[
'id' => 'user_directory',
- 'title' => __( 'User Directory', 'wp-user-frontend' ) . ' ' . '
' . '',
+ 'title' => __( 'User Directory', 'wp-user-frontend' ) . '
',
'icon' => 'dashicons-list-view',
'class' => 'pro-preview-html',
'is_pro_preview' => true,
],
[
'id' => 'wpuf_payment_invoices',
- 'title' => __( 'Invoices', 'wp-user-frontend' ) . ' ' . '
' . '',
+ 'title' => __( 'Invoices', 'wp-user-frontend' ) . '
',
'icon' => 'dashicons-media-spreadsheet',
'class' => 'pro-preview-html',
'is_pro_preview' => true,
],
[
'id' => 'wpuf_payment_tax',
- 'title' => __( 'Tax', 'wp-user-frontend' ) . ' ' . '
' . '',
+ 'title' => __( 'Tax', 'wp-user-frontend' ) . '
',
'icon' => 'dashicons-media-text',
'class' => 'pro-preview-html',
'is_pro_preview' => true,
],
[
'id' => 'wpuf_content_restriction',
- 'title' => __( 'Content Filtering', 'wp-user-frontend' ) . ' ' . '
' . '',
+ 'title' => __( 'Content Filtering', 'wp-user-frontend' ) . '
',
'icon' => 'dashicons-admin-network',
'class' => 'pro-preview-html',
'is_pro_preview' => true,
],
[
'id' => 'wpuf_seo_settings',
- 'title' => __( 'SEO Settings', 'wp-user-frontend' ) . ' ' . '
' . '',
+ 'title' => __( 'SEO Settings', 'wp-user-frontend' ) . '
',
'icon' => 'dashicons-search',
'class' => 'pro-preview-html',
'is_pro_preview' => true,
@@ -588,9 +589,9 @@ public function pro_settings( $settings_fields ) {
'name' => 'google_app_label',
'label' => __( 'Google App Settings', 'wp-user-frontend' ),
'type' => 'html',
- 'desc' => '' . __( 'Create an App',
- 'wp-user-frontend' ) . '' . __( ' if you don\'t have one and fill Client ID and Client Secret below.',
- 'wp-user-frontend' ),
+ 'desc' => ''
+ . __( 'Create an App', 'wp-user-frontend' ) . ''
+ . __( ' if you don\'t have one and fill Client ID and Client Secret below.', 'wp-user-frontend' ),
'is_pro_preview' => true,
],
'google_app_url' => [
@@ -616,9 +617,9 @@ public function pro_settings( $settings_fields ) {
'name' => 'linkedin_app_label',
'label' => __( 'Linkedin App Settings', 'wp-user-frontend' ),
'type' => 'html',
- 'desc' => '' . __( 'Create an App',
- 'wp-user-frontend' ) . '' . __( ' if you don\'t have one and fill Client ID and Client Secret below.',
- 'wp-user-frontend' ),
+ 'desc' => ''
+ . __( 'Create an App', 'wp-user-frontend' ) . ''
+ . __( ' if you don\'t have one and fill Client ID and Client Secret below.', 'wp-user-frontend' ),
'is_pro_preview' => true,
],
'linkedin_app_url' => [
@@ -1005,7 +1006,7 @@ public function wpuf_check_save_permission_runner( $post, $update ) {
* @return array
*/
public function post_form_templates( $integrations ) {
- $integrations['post_form_template_woocommerce'] = new Post_Form_Template_WooCommerce();
+ $integrations['post_form_template_woocommerce'] = new Post_Form_Template_WooCommerce();
// Enable Events Calendar template with new integration
if ( class_exists( 'Tribe__Events__Main' ) ) {
@@ -1025,12 +1026,13 @@ public function post_form_templates( $integrations ) {
* @return array
*/
public function pro_form_previews( $integrations ) {
- $integrations['WPUF_Pro_Form_Preview_EDD'] = new Pro_Form_Preview_EDD();
- $integrations['WPUF_Pro_Form_Preview_Press_Release'] = new Pro_Form_Preview_Press_Release();
+ $integrations['WPUF_Pro_Form_Preview_EDD'] = new Pro_Form_Preview_EDD();
+ $integrations['WPUF_Pro_Form_Preview_Press_Release'] = new Pro_Form_Preview_Press_Release();
$integrations['WPUF_Pro_Form_Preview_Professional_Video'] = new Pro_Form_Preview_Professional_Video();
- $integrations['WPUF_Pro_Form_Preview_Artwork'] = new Pro_Form_Preview_Artwork();
- $integrations['WPUF_Pro_Form_Preview_Portfolio'] = new Pro_Form_Preview_Portfolio();
- $integrations['WPUF_Pro_Form_Preview_Volunteer'] = new Pro_Form_Preview_Volunteer();
+ $integrations['WPUF_Pro_Form_Preview_Artwork'] = new Pro_Form_Preview_Artwork();
+ $integrations['WPUF_Pro_Form_Preview_Testimonial'] = new Pro_Form_Preview_Testimonial();
+ $integrations['WPUF_Pro_Form_Preview_Portfolio'] = new Pro_Form_Preview_Portfolio();
+ $integrations['WPUF_Pro_Form_Preview_Volunteer'] = new Pro_Form_Preview_Volunteer();
return $integrations;
}
diff --git a/wpuf-functions.php b/wpuf-functions.php
index cb99e0b63..ba22f9f36 100644
--- a/wpuf-functions.php
+++ b/wpuf-functions.php
@@ -2229,8 +2229,10 @@ function wpuf_is_license_expired() {
* @return array
*/
function wpuf_get_post_form_templates() {
- $integrations['post_form_template_post'] = new WeDevs\Wpuf\Admin\Forms\Post\Templates\Post_Form_Template_Post();
- $integrations['post_form_template_video'] = new WeDevs\Wpuf\Admin\Forms\Post\Templates\Post_Form_Template_Video();
+ $integrations['post_form_template_post'] = new WeDevs\Wpuf\Admin\Forms\Post\Templates\Post_Form_Template_Post();
+ $integrations['post_form_template_video'] = new WeDevs\Wpuf\Admin\Forms\Post\Templates\Post_Form_Template_Video();
+ $integrations['post_form_template_paid_guest_post'] = new WeDevs\Wpuf\Admin\Forms\Post\Templates\Post_Form_Template_Paid_Guest_Post();
+ $integrations['post_form_template_guest_post_recurring'] = new WeDevs\Wpuf\Admin\Forms\Post\Templates\Post_Form_Template_Guest_Post_Recurring();
return apply_filters( 'wpuf_get_post_form_templates', $integrations );
}
@@ -5698,17 +5700,19 @@ function wpuf_get_post_form_builder_setting_menu_contents() {
unset( $post_types['oembed_cache'] );
$template_options = [
- '' => __( '-- Select Template --', 'wp-user-frontend' ),
- 'post_form_template_post' => __( 'Post Form', 'wp-user-frontend' ),
- 'post_form_template_woocommerce' => __( 'WooCommerce Product Form', 'wp-user-frontend' ),
- 'post_form_template_edd' => __( 'EDD Download Form', 'wp-user-frontend' ),
- 'post_form_template_events_calendar' => __( 'Event Form', 'wp-user-frontend' ),
- 'post_form_template_video' => __( 'Video Form', 'wp-user-frontend' ),
- 'post_form_template_professional_video' => __( 'Professional Video Form', 'wp-user-frontend' ),
- 'post_form_template_artwork' => __( 'Artwork Form', 'wp-user-frontend' ),
- 'post_form_template_press_release' => __( 'Press Release Form', 'wp-user-frontend' ),
- 'post_form_template_portfolio' => __( 'Portfolio Form', 'wp-user-frontend' ),
- 'post_form_template_volunteer' => __( 'Volunteer Opportunity Form', 'wp-user-frontend' ),
+ '' => __( '-- Select Template --', 'wp-user-frontend' ),
+ 'post_form_template_post' => __( 'Post Form', 'wp-user-frontend' ),
+ 'post_form_template_woocommerce' => __( 'WooCommerce Product Form', 'wp-user-frontend' ),
+ 'post_form_template_edd' => __( 'EDD Download Form', 'wp-user-frontend' ),
+ 'post_form_template_events_calendar' => __( 'Event Form', 'wp-user-frontend' ),
+ 'post_form_template_video' => __( 'Video Form', 'wp-user-frontend' ),
+ 'post_form_template_paid_guest_post' => __( 'Paid Guest Post', 'wp-user-frontend' ),
+ 'post_form_template_guest_post_recurring' => __( 'Guest Post (Recurring Subscription)', 'wp-user-frontend' ),
+ 'post_form_template_professional_video' => __( 'Professional Video Form', 'wp-user-frontend' ),
+ 'post_form_template_artwork' => __( 'Artwork Form', 'wp-user-frontend' ),
+ 'post_form_template_press_release' => __( 'Press Release Form', 'wp-user-frontend' ),
+ 'post_form_template_portfolio' => __( 'Portfolio Form', 'wp-user-frontend' ),
+ 'post_form_template_volunteer' => __( 'Volunteer Opportunity Form', 'wp-user-frontend' ),
];
$registry = wpuf_get_post_form_templates();