| [ Root ] [ Search ] [ Index ] |
PHP Cross Reference of WordPress 3.0.1Provided by Yoast |
[Source view] [Print] [Project Stats]
TwentyTen functions and definitions Sets up the theme and provides some helper functions. Some helper functions are used in the theme as custom template tags. Others are attached to action and filter hooks in WordPress to change core functionality.
| File Size: | 483 lines (18 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| twentyten_setup() X-Ref |
| Sets up theme defaults and registers support for various WordPress features. Note that this function is hooked into the after_setup_theme hook, which runs before the init hook. The init hook is too late for some features, such as indicating support post thumbnails. To override twentyten_setup() in a child theme, add your own twentyten_setup to your child theme's functions.php file. |
| twentyten_admin_header_style() X-Ref |
| Styles the header image displayed on the Appearance > Header admin panel. Referenced via add_custom_image_header() in twentyten_setup(). |
| twentyten_page_menu_args( $args ) X-Ref |
| Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. To override this in a child theme, remove the filter and optionally add your own function tied to the wp_page_menu_args filter hook. |
| twentyten_excerpt_length( $length ) X-Ref |
| Sets the post excerpt length to 40 characters. To override this length in a child theme, remove the filter and add your own function tied to the excerpt_length filter hook. return: int |
| twentyten_continue_reading_link() X-Ref |
| Returns a "Continue Reading" link for excerpts return: string "Continue Reading" link |
| twentyten_auto_excerpt_more( $more ) X-Ref |
| Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyten_continue_reading_link(). To override this in a child theme, remove the filter and add your own function tied to the excerpt_more filter hook. return: string An ellipsis |
| twentyten_custom_excerpt_more( $output ) X-Ref |
| Adds a pretty "Continue Reading" link to custom post excerpts. To override this link in a child theme, remove the filter and add your own function tied to the get_the_excerpt filter hook. return: string Excerpt with a pretty "Continue Reading" link |
| twentyten_remove_gallery_css( $css ) X-Ref |
| Remove inline styles printed when the gallery shortcode is used. Galleries are styled by the theme in Twenty Ten's style.css. return: string The gallery style filter, with the styles themselves removed. |
| twentyten_comment( $comment, $args, $depth ) X-Ref |
| Template for comments and pingbacks. To override this walker in a child theme without modifying the comments template simply create your own twentyten_comment(), and that function will be used instead. Used as a callback by wp_list_comments() for displaying the comments. |
| twentyten_widgets_init() X-Ref |
| Register widgetized areas, including two sidebars and four widget-ready columns in the footer. To override twentyten_widgets_init() in a child theme, remove the action hook and add your own function tied to the init hook. |
| twentyten_remove_recent_comments_style() X-Ref |
| Removes the default styles that are packaged with the Recent Comments widget. To override this in a child theme, remove the filter and optionally add your own function tied to the widgets_init action hook. |
| twentyten_posted_on() X-Ref |
| Prints HTML with meta information for the current post—date/time and author. |
| twentyten_posted_in() X-Ref |
| Prints HTML with meta information for the current post (category, tags and permalink). |
| Generated: Thu Oct 14 05:12:05 2010 | Cross-referenced by PHPXref 0.7 |