WordPress.org

Ready to get started?Download WordPress

Forums

Log Deprecated Notices
[resolved] add_options_page reported as deprecated? (2 posts)

  1. Ajay
    Member
    Posted 2 years ago #

    Hi,

    I am getting a notice stating:

    Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead.
    Deprecated in version 2.0.

    This is for add_options_page

    The Codex doesn't state that it has been deprecated. Is this being incorrectly picked up by the plugin / WP_DEBUG?

    http://wordpress.org/extend/plugins/log-deprecated-notices/

  2. Mark / t31os
    Moderator
    Posted 1 year ago #

    It's not referring to add_options_page, it's referring to value passed into the capability parameter of the function(third parameter), which expects a capability and not a role or user level.

    http://codex.wordpress.org/Function_Reference/add_options_page

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags