WordPress.org

Ready to get started?Download WordPress

Forums

YOP Poll
[resolved] Admin menu conflicts (plugin replaces other menu items) (2 posts)

  1. imero
    Member
    Posted 1 year ago #

    When I installed YOP Poll plugin a new menu item appeared in the sidebar admin menu. At the same time one of other items (for managing custom post type) just disappeared. Whenever I make changes to that menu item to make it visible another menu item disappears. Deactivating plugin makes all these menu items visible again. I need to mention I have about 23 menu items in this WP installation so the problem will arise only in such rare cases. I solved the problem by editing line 170 of inc/admin.php file. There's an option of putting menu item into 29th position. I used decimal 28.5 instead of 29 as mentioned in WP Codex.

    Full line looks so:

    $page = add_menu_page( __( 'Yop Poll', 'yop_poll' ), __( 'Yop Poll', 'yop_poll' ), 'edit_posts', 'yop-polls', array( $this, 'manage_pages' ), "{$this->_config->plugin_url}/images/yop-poll-admin-menu-icon16.png", '28.5' );

    I hope in next update this conflict will be eliminated.

    http://wordpress.org/extend/plugins/yop-poll/

  2. YOP
    Member
    Plugin Author

    Posted 1 year ago #

    Hello

    Thank you for letting us know about this issue.

    We have released a new version that has a fix for it.

    Best Regards,
    YOP Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic