manager->get_control( $setting->id )->choices; // If the input is a valid key, return it; otherwise, return the default. return ( array_key_exists( $input, $choices ) ? $input : $setting->default ); } function magpoint_sanitize_checkbox( $checked ) { return ( ( isset( $checked ) && true === $checked ) ? true : false ); } function magpoint_excerpt_more( $more ) { if ( is_admin() ) { $more = '...'; return $more; } } add_filter('excerpt_more', 'magpoint_excerpt_more');