Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author artifex404

    (@artifex404)

    Thank you, I will fix that in the next version!

    Plugin Author artifex404

    (@artifex404)

    Actually the $position parameter from the documentation should be an integer. However, the after looking at the function’s code, it will work with a string too. But if the documentation says it should be an integer, there might some compatibility issues in the future if it is not an integer.

    Thread Starter virgodesign

    (@virgodesign)

    Yes but, in the $position parameter documentation there is a warning, as reported below:

    WARNING: if two menu items use the same position attribute, one of the items may be overwritten so that only one item displays! Risk of conflict can be reduced by using decimal instead of integer values, e.g. 63.3 instead of 63 (Note: Use quotes in code, IE ‘63.3’).

    And the Note suggest to quotes the decimal $position value.
    Due to other plugins I was experience just this problem: I was not be able to se the the admin menu items. Quoting the $position param solve me the problem, showing the admin menu items correclty.

    Plugin Author artifex404

    (@artifex404)

    ok. I’ll implement the quotes. Thanks!

    Thread Starter virgodesign

    (@virgodesign)

    Thanks to you Igor.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Easy to fix bug] $position param in the add_menu_page function should be quotes’ is closed to new replies.