Support » Plugin: Post Meta Inspector » [Plugin: Post Meta Inspector] It does not work at all sorry

  • Resolved Julio Potier

    (@juliobox)


    Hello

    The box is empty, just “Key” and “Value”.
    In fact the line 66 is the problem :
    if ( apply_filters( 'pmi_ignore_post_meta_key', '__return_false', $key ) )
    The 2nd parameter is a string and will never be executed as a function, this is the way add_filter() works, not apply_filters().
    So you have to do this (tested and OK) :
    if ( apply_filters( 'pmi_ignore_post_meta_key', false, $key ) )
    I suggest you to add a second filter like this :
    if ( apply_filters( 'pmi_ignore_post_meta_' . $key, false ) )

    See you !

    http://wordpress.org/extend/plugins/post-meta-inspector/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Post Meta Inspector] It does not work at all sorry’ is closed to new replies.