• Resolved raskull

    (@raskull)


    Hi! I would like to remove some options from the image widget admin, without hacking up your plugin as I had done with the previous version.

    I want to remove the window target pulldown, the size fields, and the align field from the widget admin user.

    Additionally I want to fix the width and height display size (on the front end) to a specific height and width (hardwired by the theme, not chosen by the administrator).

    Please advise.

    http://wordpress.org/plugins/image-widget/

Viewing 1 replies (of 1 total)
  • Hi raskull,

    I’m not totally sure but I think you can copy the /views/widget-admin.php file to your theme /image-widget/widget-admin.php and then you can update it to remove some fields.

    Then you can filter the various filters to override things. You can see the filters in image-widget.php around line 90 – 104.

    image_widget_image_width
    image_widget_image_height
    image_widget_image_link_target
    image_widget_image_align

    add_filter('image_widget_image_width', 'raskull_overide_image_widget_height');
    function raskull_overide_image_widget_height() {
    	return 300;
    }
Viewing 1 replies (of 1 total)

The topic ‘Remove options from image widget admin’ is closed to new replies.