Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[WordPress] Ignore Coding Standards in PHP CodeSniffer
public function highlight_draft_submenu( $parent_file ) {
global $submenu_file;
// Only update the submenu file value if we're on the Scheduled page.
if ( 'draft' === get_query_var( 'post_status' ) ) {
* Removing unnecessary code for the purposes of the demo. Assume
* there is an associative array of key/value pairs referened by
* a variabled named `$args`.
// @codingStandardsIgnoreStart
$submenu_file = add_query_arg( $args, $url );
// @codingStandardsIgnoreEnd
return $parent_file;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.