Skip to content

Instantly share code, notes, and snippets.

@Pebblo Pebblo/example.php
Created Feb 21, 2019

What would you like to do?
Example of using the `FHEE__EE_Form_Input_Base___construct__input_args` hook to change the Venue Select dropdown selections on the event editor.
<?php //Please do not add the opening PHP tag if you already have one.
add_filter('FHEE__EE_Form_Input_Base___construct__input_args', 'tw_test', 10, 2);
function tw_test( $input_args, $input_obj) {
&& $input_args['html_name'] === 'venue_id'
&& $input_obj instanceof EE_Select_Input
) {
$options = $input_obj->options();
foreach($options as $key => $value){
if($key !== 0) {
$options[$key] = $value . ' Test';
return $input_args;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.