-
-
Save billerickson/60de534fb4424818a9c55af6be5917f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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