options = get_option( 'ino_starred_common' ); ?>

Starred Posts - Settings

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, to highlight or bookmark 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.
Hover your mouse over each star to show its name.
In Use
Not In Use
', isset( $this->options['enabled_stars'] ) ? esc_attr( $this->options['enabled_stars'] ) : '' ); } public function do_field_post_types(){ $pts = get_post_types( array( 'show_ui' => true , '_builtin' => false), 'objects' ); $option_pts = ( isset( $this->options['post_types'] ) ) ? $this->options['post_types'] : array(); $item_template = '
  • '; $builtin = array( 'post' => 'Posts', 'page' => 'Pages' ); ?>

    Select the post types where you'd like Starred Posts to be enabled. Default Post types'; echo '

    '; echo '

    Custom Post types

    '; echo ''; } public function do_field_save_type(){ $options_save = ( isset( $this->options['save_type'] ) ) ? $this->options['save_type'] : 'site'; $item_template = ''; $item_template = << %s 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.' ) ); ?> $option ){ $selected = ( $option_id == $options_save )? 'checked' : ''; $item = sprintf( $item_template, $option_id, $selected, $option['label'], $option['help'] ); echo $item; } ?>
    options['enabled_stars'] ) && !empty( $this->options['enabled_stars'] ) ) ? $this->options['enabled_stars'] : '1'; return explode( ',',$ids_str ); } private function sanitize_custom_pt( $pts = array() ){ return array_keys( $pts ); } }