• Resolved tye

    (@tye)


    Hey – is there a filter (I couldn’t find a setting) to remove “Authorial Info” from the profile pages?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello 🙂 There are hooks which you can unbind, as shown in the snippet below.

    add_action( 'the_seo_framework_after_admin_init', function() {
    	$tsf = the_seo_framework();
    
    	remove_action( 'show_user_profile', [ $tsf, '_add_user_author_fields' ], 0 );
    	remove_action( 'edit_user_profile', [ $tsf, '_add_user_author_fields' ], 0 );
    
    	remove_action( 'personal_options_update', [ $tsf, '_update_user_settings' ], 10 );
    	remove_action( 'edit_user_profile_update', [ $tsf, '_update_user_settings' ], 10 );
    } );
    

    The snippet works in plugins, and it should work in themes, too.

    Thread Starter tye

    (@tye)

    Thanks Sybre – sorry I didn’t get notified of your reply 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Authorial Info’ is closed to new replies.