Gravity Wiz

Magically enhanced tutorials, snippets and plugins for Gravity Forms!

  • Gravity Perks
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    • Documentation
    • Support
    • Account

gpls_rule_get_post_args

  1. Description
  2. Usage
  3. Parameters
  4. Since
  5. Examples
    1. Include posts of a custom post type in the Embed URL › Post/Page rule.

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.

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 Perks

  • GF Auto Login
  • GF Better User Activation
  • GF Blacklist
  • 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 Expand Textareas
  • GF File Upload Pro
  • 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 Pay Per Word
  • GF PayPal One-time Fee
  • GF Placeholder
  • GF Populate Anything
  • GF Post Content Merge Tags
  • GF Preview Submission
  • GF Price Range
  • GF Read Only
  • GF Reload Form
  • GF Terms Of Service
  • GF Unique ID
  • GF Word Count

Copyright © 2021 · Powered by WordPress · Gravity Wiz LLC

  • Support
  • Affiliates
  • About
  • Sitemap
  • Gravity Perks
    ▼
    • Gravity Perks
    • Tutorials & Snippets
    • About
  • Support
    ▼
    • Documentation
    • Support
    • Account