WordPress.org

Support

Support » Plugins and Hacks » Custom Metadata Manager » [Resolved] [Plugin: Custom Metadata Manager] Not Working for users in WP 3.3

[Resolved] [Plugin: Custom Metadata Manager] Not Working for users in WP 3.3

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    I figured out that I used a wrong tag for this question, so it was not showing up for the plugin: http://wordpress.org/tags/custom-metadata?forum_id=10

    Now it shows up so hopefully it catches your attention.

    Thanks,
    Martin

    Hello again,

    1. I had a look into the plugin. Here’s a quick fix for custom fields not showing up when editing users and in user columns:

    Change this at line 707 or around:

    // This is a hack!
    if( $pagenow == 'profile.php' ) {
    	return 'user';
    }

    To this:

    // This is a hack!
    if( $pagenow == 'profile.php' || $pagenow == 'user-edit.php' || $pagenow == 'users.php' ) {
    	return 'user';
    }

    Looks like the name of the PHP file used for user editing has changed in WP 3.3.

    2. Also the display_callback and display_column_callback is not getting the value of the custom meta field in its 4th argument. I only put in a quick fix in the callback:

    $value = get_user_meta( $object_id, $field_slug, true );

    Thanks,
    Martin

    Plugin Author Joey Kudish

    @jkudish

    Hi FolioVision,

    Thanks for reporting the issue and for providing a solution! I am going to incorporate your changes as well as a few other WP 3.3 compatibility fixes in an upcoming release probably later this week.

    Thanks again and keep an eye out on the update in a few days!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Custom Metadata Manager] Not Working for users in WP 3.3’ is closed to new replies.
Skip to toolbar