Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter whoaloic

    (@whoaloic)

    I finally remove the function pigen_change_icon() :

    function remove_pigen_change_icon() {
    	$tag = 'wp_mime_type_icon';
    	$function_to_remove = 'pigen_change_icon';
    	$priority = 10;
    remove_filter( $tag, $function_to_remove, $priority );
    }
    add_action( 'after_setup_theme', 'remove_pigen_change_icon' );

    i don’t understand the usefulness of pigen_change_icon().

    Plugin Author Mizuho Ogino

    (@fishpie)

    Hi whoaloic.

    pigen_change_icon() replaces a mime icon to a thumbnail in media uploader like below.
    https://s.w.org/plugins/pdf-image-generator/screenshot-1.jpg

    I guess you mean that pdf icons doesn’t show in the static media library page.
    So, I disabled pigen_change_icon only in the library page.

    Thanks for good feedback.
    Please update the plugin.

    Thread Starter whoaloic

    (@whoaloic)

    Hi,
    I need to disable pigen_change_icon in the admin edit post screen page.

    Plugin Author Mizuho Ogino

    (@fishpie)

    I uploaded the plugin to 1.2.1. and add the plugin page in ‘setting.’
    You can disable some functions in there.

    Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Do not replace icon in admin’ is closed to new replies.