Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created July 19, 2018 13:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/60de534fb4424818a9c55af6be5917f3 to your computer and use it in GitHub Desktop.
Save billerickson/60de534fb4424818a9c55af6be5917f3 to your computer and use it in GitHub Desktop.
<?php
/**
* Modify Featured Areas
* @see https://github.com/billerickson/BE-Featured-Areas
*
* @param array $featured_areas
* @return array
*/
function ea_modify_featured_areas( $featured_areas ) {
// You can append new areas to this array.
$featured_areas[] = array( 'label' => 'Home Top', 'slug' => 'home-top' );
// Or you can replace the array, removing the default featured area
$featured_areas = array(
array(
'label' => 'Home Top',
'slug' => 'home-top',
)
);
return $featured_areas;
}
add_filter( 'be_featured_areas', 'ea_modify_featured_areas' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment