View Single Post
Old 10-07-2014, 08:17 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline

Join Date: Apr 2007
Posts: 13,941

Default Re: Wordpress in XC 5 ... remove "Blog" from Top Menu

You can just do ... instead of looping through the array and creating new one

PHP Code:
protected function defineItems()
$items parent::defineItems();
        foreach (
$items as $aItem) {
        if (
$aItem['label'] == static::t('Blog')) {
// if the array is just a contiguous numeric array you
    // may want to renumber it before the return 
    // array_values($array)
return $items;

Steve Stoyanov
Web Development
Reply With Quote