The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Default featured image
[resolved] Allow external access to override plugin filters (2 posts)

  1. Ivan Novak
    Posted 2 years ago #

    No problem here, just wanted to share a modification that I made to the plugin to make it more malleable and serve my purposes better.

    Line 17

    self::$_this = $this;

    Line 37

    static function this() {
    	return self::$_this;

    This allowed me to remove filters. For example:

    if(class_exists('default_featured_image')) {
    	$default_featured_image_instance = default_featured_image::this();
    	remove_filter( 'get_post_metadata', array( $default_featured_image_instance, 'set_dfi_meta_key'));


  2. janw.oostendorp
    Plugin Author

    Posted 2 years ago #

    I see what you did there. Nice shortcut of a singelton.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Default featured image
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.