Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @almadeaventura,

    What version of the Ultimate member you have installed on your site?
    Have you updated to the latest 2.1.1 version of the Ultimate member core?

    Regards.

    Thread Starter almadeaventura

    (@almadeaventura)

    Yes my Friend.
    I habe the latest versión installed 2.1.1

    I tried to reinstall and nothing ??

    Thanks for your help

    I’m also having issues with the callback function not saving the dropdown from the Parent Option and Callback Choices
    https://pasteboard.co/IGYoK6Om.png

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi Everyone,

    Here’s the new code snippet for the Parent Option with Callback Choices.

    /**
     * Parent dropdown callback
     * @return array
     */
    function um_my_parent_dropdown_options_callback(){
    	$array  = array(
    		"a" => "A",
    		"b" => "B",
    		"c" => "C",
    	);
    
    	return $array;
    }
    /**
     * Child dropdown callback
     * @param  boolean $has_parent 
     * @return array         
     */
    function um_my_child_dropdown_options_callback( $has_parent = false ){
    
    	$parent_option = $_POST['parent_option'];
    
    	$all_options = array(
    		"a" => array(
    			"apple" => "Apple",
    			"acre" 	=> "Acre",
    			"amber" => "Amber",
    		),
    		"b" => array(
    			"d" => "D",
    			"e" => "E",
    			"f" => "F",
    		),
    
    	);
    
    	$arr_options = array();
    		
    
    	if( isset( $all_options[ $parent_option ] ) ){
    		$arr_options = $all_options[ $parent_option ];
    	}elseif( ! isset( $_POST['parent_option'] ) ) {
    
    		foreach( $all_options as $k => $opts ){
    			$arr_options = array_merge( $opts, $arr_options );
    		}
    
    	}
    
    	return $arr_options;
    
    }

    Also, see: https://github.com/ultimatemember/ultimatemember/issues/450#issuecomment-524639349

    Let me know if you’re still encountering any issues.

    Regards,

    Thanks for your response! The parent and child now save; however, if the user edits their profile, the information doesn’t show/edit correctly from the parent & child saved previously.

    Thread Starter almadeaventura

    (@almadeaventura)

    Works perfect for me… thanks a lot

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @ashleycam3ron – Does your site have any caching plugin stalled? If so, could you please try excluding the user/profile page from the cache and see if this resolves the issue?

    Regards,

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hey Everyone,

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Callback dropdown in filter members section not work’ is closed to new replies.