• Resolved drandolph1

    (@drandolph1)


    In the profile page settings & the role settings, I have turned off Indexing. The option shows on the user profile page.

    What is the code to turn that off? I searched the developer docs but couldn’t find anything

    THanks for all your help

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support andrewshu

    (@andrewshu)

    Hello @drandolph1

    Do you mean disable the option for users? So they can’t change their privacy settings?

    Thank you.

    Thread Starter drandolph1

    (@drandolph1)

    Yes

    Plugin Support andrewshu

    (@andrewshu)

    Hi @drandolph1

    Try to use this hook

    add_filter( 'um_predefined_fields_hook', 'um_hide_noindex', 10, 1 );
    function um_hide_noindex( $predefined_fields ) {
    	unset( $predefined_fields['profile_noindex'] );
    	return $predefined_fields;
    }

    Thank you.

    Plugin Support andrewshu

    (@andrewshu)

    Hi @drandolph1

    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 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Allow INdexing option’ is closed to new replies.