Use stars to mark posts, pages and custom posts in your Wordpress admin. Mark a post with a star so you
remember it's important, or just because you want to highlight it.
sanitize_custom_pt( $input['post_types'] );
}
if( isset( $input['save_type'] ) ){
$new_input['save_type'] = sanitize_text_field( $input['save_type'] );
}
return $new_input;
}
public function stars_section_info(){
}
public function do_field_enabled_stars(){
$stars = Ino_Starred_Stars::get_stars();
$ids = $this->get_ids_list();
$item_template = '';
$enabled = array_fill( 0, count( $ids ), null );
$disabled = array();
for( $i = 0; $i < count( $stars ); $i++ ){
$star = $stars[ $i ];
$item = sprintf( $item_template, $star['id'], $star['label'] );
$enabled_idx = array_search( $star['id'], $ids );
if( $enabled_idx !== false ){
$enabled[ $enabled_idx ] = $item;
}else{
$disabled[] = $item;
}
}
?>
Drag the stars between the lists. The stars will rotate in the order shown below when you click successively.
To learn the name of a star, hover your mouse over the image.
EOD;
$types = array(
'user' => array(
'label' => 'By User',
'help' => 'Stars added by a user are only visible to that user.'
),
'site' => array(
'label' => 'Site wide',
'help'=>'Stars added by a user are visible to all users.'
)
);
?>