Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John James Jacoby

    (@johnjamesjacoby)

    Hey Mike!

    This isn’t currently possible, but can be easily achieved in a future version.

    I created an issue on GitHub to track this future development.

    https://github.com/stuttter/wp-user-avatars/issues/10

    Thanks for suggesting this!

    -JJJ

    Firstly, I apologise for invading this support topic.

    May I know whether this has been implemented, please?
    I like to replace the “Choose from Media” button with the “Update Avatar” button, as shown here.

    Thank you.

    I’m trying to override the wp_user_avatars_admin_enqueue_scripts function within /wp-user-avatars/includes/admin.php. But I’m facing difficulties to remove the hook of this function before I can re-hook with another custom wp_user_avatars_admin_enqueue_scripts function.

    remove_action( 'admin_enqueue_scripts', 'wp_user_avatars_admin_enqueue_scripts' );
    remove_action( 'wp_user_profiles_do_admin_head',  'wp_user_avatars_admin_enqueue_scripts' );

    Why can’t I remove_action ‘wp_user_avatars_admin_enqueue_scripts’ …?
    Please advise. Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable "Choose from media"’ is closed to new replies.