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
add_action('wp_head', 'change_fp_ids'); | |
function change_fp_ids(){ | |
add_filter('fpc_featured_pages_ids', 'my_fp_ids', 20); | |
function my_fp_ids( $fp_ids ){ | |
$role_page = array( | |
// Role => Page/Post name | |
'administrator' => 'Blog', | |
'editor' => 'A', | |
); | |
// do nothing if in admin backend or in the customize |