We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This snippet: https://github.com/CMB2/CMB2-Snippet-Library/blob/master/options-and-settings-pages/options-pages-with-tabs-and-submenus.php - will work correctly on PHP 5.4 and above, because of this $cmb->options_page_keys()[0].
$cmb->options_page_keys()[0]
Older PHP will fatal.
The text was updated successfully, but these errors were encountered:
@slaFFik the way to get around this would be to assign to a variable first and then reference it via $somevar[0] correct?
$somevar[0]
Sorry, something went wrong.
@tw2113 yes, that's correct.
No branches or pull requests
This snippet: https://github.com/CMB2/CMB2-Snippet-Library/blob/master/options-and-settings-pages/options-pages-with-tabs-and-submenus.php - will work correctly on PHP 5.4 and above, because of this
$cmb->options_page_keys()[0]
.Older PHP will fatal.
The text was updated successfully, but these errors were encountered: