<?php [[add_menu_page|add_menu_page]]( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position ); ?>
how does this [[add_menu_page|add_menu_page]] work? and what is the underlying logic?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Does the WordPress documentation run on a wiki? Because on most wikis (at least, of the MediaWiki variety), the [[ | ]] syntax is used to describe a link to another wiki page. That is probably just a link to the page about add_menu_page(). You can just read it like this:
I checked the page and it isn’t a link–so was probably copied incorrectly from a wiki at some point, because that definitely looks like a MediaWiki link.