function ahoy() { //Allow editor style. // add_editor_style( get_stylesheet_directory_uri() . '/library/css/editor-style.css' ); // USE THIS TEMPLATE TO CREATE CUSTOM POST TYPES EASILY require_once 'library/custom-post-types.php'; // launching operation cleanup add_action('init', 'head_cleanup'); // A better title add_filter('wp_title', 'rw_title', 10, 3); // remove WP version from RSS add_filter('the_generator', 'rss_version'); // remove pesky injected css for recent comments widget add_filter('wp_head', 'remove_wp_widget_recent_comments_style', 1); // clean up comment styles in the head add_action('wp_head', 'remove_recent_comments_style', 1); // clean up gallery output in wp add_filter('gallery_style', 'gallery_style'); // enqueue base scripts and styles add_action('wp_enqueue_scripts', 'scripts_and_styles', 999); // ie conditional wrapper // launching this stuff after theme setup theme_support(); // adding sidebars to Wordpress (these are created in functions.php) add_action('widgets_init', 'register_sidebars'); // cleaning up random code around images add_filter('the_content', 'filter_ptags_on_images'); // cleaning up excerpt add_filter('excerpt_more', 'excerpt_more'); }
function launch_custom_actions() { add_action('init', 'head_cleanup'); add_filter('wp_title', 'rw_title', 10, 3); add_filter('the_generator', 'rss_version'); add_filter('gallery_style', 'gallery_style'); add_action('wp_enqueue_scripts', 'load_scripts_and_styles', 999); theme_support(); add_filter('the_content', 'filter_ptags_on_images'); }