Add info button

Forums › Forums › Search & Filter Pro › Add info button

Viewing 2 posts – 11 through 12 (of 12 total)
  • Anonymous
    #249752

    Ok nice, this is working:

    function filter_function_name($input_object, $sfid)
    {
        $acf_name = substr($input_object['name'],5);
        
    	if(strlen($acf_name)>0)
    	{
    		$input_object['attributes']['title'] = get_field_object($acf_name)['instructions'];
    	}
    	
        return $input_object;
        
    }
    add_filter('sf_input_object_pre', 'filter_function_name', 10, 2);

    It only gives different attribute names based on the field type, for example “title” and “class title” but I wil fix that with JS.

    Thanks a lot!

    Trevor
    #249757

    Thanks for sharing. I will close this thread for now.

Viewing 2 posts – 11 through 12 (of 12 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.