WordPress.org

Ready to get started?Download WordPress

Forums

Simple Tags
add_meta_box suggestedtags (4 posts)

  1. Iulyy
    Member
    Posted 1 year ago #

    "Warning: call_user_func() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in .../wp-admin/includes/template.php on line 297"

    I don't know how to solve this problem, if could someone can help me please release me of headaches.

    The code:
    [backticks]add_action('admin_init', 'stags');

    function stags() {
    add_meta_box('suggestedtags', __('Suggested tags', 'simpletags'), array(&$this, 'boxSuggestTags'), 'videos', 'advanced', 'core');
    }[/backticks]

    http://wordpress.org/extend/plugins/simple-tags/

  2. Iulyy
    Member
    Posted 1 year ago #

    Solved the problem, I replaced &$this with SimpleTags_Admin_Suggest

  3. Amaury Balmer
    Member
    Plugin Author

    Posted 1 year ago #

    Fixed on latest version 2.3

  4. Iulyy
    Member
    Posted 12 months ago #

    I updated the plugin and also update my code replacing boxSuggestTags with admin_menu but only shows the table of Simple tags without the content (Suggested tags).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic