gpls_rule_get_post_args
Description
Filter the arguments passed to get_posts() when pulling posts to display for the Embed URL rule.
Usage
add_filter( 'gpls_rule_get_post_args', 'my_custom_function' );
Parameters
args array
An array of WP_Query arguments.
Since
This filter is available since GP Limit Submissions 1.0.
Examples
Include posts of a custom post type in the Embed URL › Post/Page rule.
<?php
/**
* Gravity Perks // Nested Forms // Include Posts of a Custom Post Type in the Embed URL › Post/Page Rule
* https://gravitywiz.com/documentation/gravity-forms-nested-forms/
*/
add_filter( 'gpls_rule_get_post_args', function( $args ) {
// Change "my_custom_post_type" to the slug of your custom post type.
$args['post_type'][] = 'my_custom_post_type';
return $args;
} );
All Connections
All Perks
- GF Address Autocomplete
- GF Advanced Calculations
- GF Advanced Phone Field
- GF Advanced Save & Continue
- GF Advanced Select
- GF Auto List Field
- GF Auto Login
- GF Better User Activation
- GF Blocklist
- GF Conditional Logic Dates
- GF Conditional Pricing
- GF Copy Cat
- GF Date Time Calculator
- GF Disable Entry Creation
- GF Easy Passthrough
- GF eCommerce Fields
- GF Email Users
- GF Entry Blocks
- GF Expand Textareas
- GF File Renamer
- GF File Upload Pro
- GF Inventory
- GF Limit Checkboxes
- GF Limit Choices
- GF Limit Dates
- GF Limit Submissions
- GF Live Preview
- GF Media Library
- GF Multi-Page Navigation
- GF Nested Forms
- GF Notification Scheduler
- GF Page Transitions
- GF Pay Per Word
- GF Populate Anything
- GF Post Content Merge Tags
- GF Preview Submission
- GF Price Range
- GF QR Code
- GF Randomizer
- GF Read Only
- GF Reload Form
- GF Terms Of Service
- GF Unique ID
- GF Word Count