Gravity Perks Easy Passthrough Edit Entry

class GPEP_Edit_Entry { private $form_id; private $delete_partial; private $passed_through_entries; private $refresh_token; private $process_feeds; public function __construct( $options ) { if ( ! function_exists( ‘rgar’ ) ) { return; } $this->form_id = rgar( $options, ‘form_id’ ); $this->delete_partial = rgar( $options, ‘delete_partial’,…Continue reading

Query Loop Include Posts Order

function custom_generateblocks_query_loop_args( $query_args, $attributes ) { // Check if the query is for the specific block where you want to apply the custom order if ( ! empty( $attributes[‘query’] ) && isset( $attributes[‘query’][‘postIds’] ) ) { // Ensure the post…Continue reading

Sort dropdown choices alphabetically

function wpf_dev_modern_dropdown_search_results( $config, $forms ) { $config[‘shouldSort’] = true; $config[‘shouldSortItems’] = false; $config[‘sortBy’] = ‘label’; // Sort by label to achieve alphabetical sorting return $config; } add_filter( ‘wpforms_field_select_choicesjs_config’, ‘wpf_dev_modern_dropdown_search_results’, 10, 2 );Continue reading