Hide Ess. Grid Posts Custom Post Type from WP Main Menu

This article is now outdated!

This can now be disabled from the plugin's Global Settings, shown in #11 here.

If you aren't using the "Ess. Grid Posts" custom posts for your grids, and would like to hide this menu option from the WP main menu, you can use following PHP snippet:

The code can be added to the plugin’s “essential-grid.php” file, which can be found here:

wp-content/plugins/essential-grid/essential-grid.php

Inside this file, around line #134, look for this code block:

Then add the snippet to the very bottom of this block, so it would look like this: