Ejemplo n.º 1
0
function bones_ahoy()
{
    // let's get language support going, if you need it
    load_theme_textdomain('bonestheme', get_template_directory() . '/library/translation');
    // launching operation cleanup
    add_action('init', 'bones_head_cleanup');
    // A better title
    add_filter('wp_title', 'rw_title', 10, 3);
    // remove WP version from RSS
    add_filter('the_generator', 'bones_rss_version');
    // remove pesky injected css for recent comments widget
    add_filter('wp_head', 'bones_remove_wp_widget_recent_comments_style', 1);
    // clean up comment styles in the head
    add_action('wp_head', 'bones_remove_recent_comments_style', 1);
    // clean up gallery output in wp
    add_filter('gallery_style', 'bones_gallery_style');
    // enqueue base scripts and styles
    add_action('wp_enqueue_scripts', 'bones_scripts_and_styles', 999);
    // ie conditional wrapper
    // launching this stuff after theme setup
    bones_theme_support();
    // adding sidebars to Wordpress (these are created in functions.php)
    add_action('widgets_init', 'bones_register_sidebars');
    // cleaning up random code around images
    add_filter('the_content', 'bones_filter_ptags_on_images');
    // cleaning up excerpt
    add_filter('excerpt_more', 'bones_excerpt_more');
}
Ejemplo n.º 2
0
function bones_ahoy()
{
    // launching operation cleanup
    add_action('init', 'bones_head_cleanup');
    // remove WP version from RSS
    add_filter('the_generator', 'bones_rss_version');
    // remove pesky injected css for recent comments widget
    add_filter('wp_head', 'bones_remove_wp_widget_recent_comments_style', 1);
    // clean up comment styles in the head
    add_action('wp_head', 'bones_remove_recent_comments_style', 1);
    // clean up gallery output in wp
    add_filter('gallery_style', 'bones_gallery_style');
    // enqueue base scripts and styles
    add_action('wp_enqueue_scripts', 'bones_scripts_and_styles', 999);
    // ie conditional wrapper
    // launching this stuff after theme setup
    bones_theme_support();
    // adding sidebars to Wordpress (these are created in functions.php)
    add_action('widgets_init', 'bones_register_sidebars');
    // adding the bones search form (created in functions.php)
    add_filter('get_search_form', 'bones_wpsearch');
    // cleaning up random code around images
    add_filter('the_content', 'bones_filter_ptags_on_images');
    // cleaning up excerpt
    add_filter('excerpt_more', 'bones_excerpt_more');
}
Ejemplo n.º 3
0
function themeInit()
{
    // allow editor style
    add_editor_style(get_stylesheet_directory_uri() . '/library/css/editor-style.css');
    // let's get language support going, if you need it
    load_theme_textdomain('bonestheme', get_template_directory() . '/library/translation');
    // a better title (library/bones.php)
    add_filter('wp_title', 'rw_title', 10, 3);
    // remove wp version from rss (library/bones.php)
    add_filter('the_generator', 'bones_rss_version');
    // remove pesky injected css for recent comments widget (library/bones.php)
    add_filter('wp_head', 'bones_remove_wp_widget_recent_comments_style', 1);
    // clean up comment styles in the head (library/bones.php)
    add_action('wp_head', 'bones_remove_recent_comments_style', 1);
    // clean up gallery output in wp (library/bones.php)
    add_filter('gallery_style', 'bones_gallery_style');
    // launching this stuff after theme setup (library/bones.php)
    bones_theme_support();
    // cleaning up random code around images
    add_filter('the_content', 'bones_filter_ptags_on_images');
    // cleaning up excerpt
    add_filter('excerpt_more', 'bones_excerpt_more');
    // add filter to prevent "slack.png" from occupying the "slack" slug
    add_filter('wp_unique_post_slug_is_bad_attachment_slug', '__return_true');
}
Ejemplo n.º 4
0
function bones_ahoy()
{
    //Allow editor style.
    add_editor_style();
    // let's get language support going, if you need it
    load_theme_textdomain('bonestheme', get_template_directory() . '/library/translation');
    // USE THIS TEMPLATE TO CREATE CUSTOM POST TYPES EASILY
    require_once 'library/custom-post-type.php';
    // launching operation cleanup
    add_action('init', 'bones_head_cleanup');
    // A better title
    add_filter('wp_title', 'rw_title', 10, 3);
    // remove WP version from RSS
    add_filter('the_generator', 'bones_rss_version');
    // remove pesky injected css for recent comments widget
    add_filter('wp_head', 'bones_remove_wp_widget_recent_comments_style', 1);
    // clean up comment styles in the head
    add_action('wp_head', 'bones_remove_recent_comments_style', 1);
    // clean up gallery output in wp
    add_filter('gallery_style', 'bones_gallery_style');
    // enqueue base scripts and styles
    add_action('wp_enqueue_scripts', 'bones_scripts_and_styles', 999);
    // ie conditional wrapper
    // launching this stuff after theme setup
    bones_theme_support();
    // cleaning up random code around images
    add_filter('the_content', 'bones_filter_ptags_on_images');
    // cleaning up excerpt
    add_filter('excerpt_more', 'bones_excerpt_more');
}
Ejemplo n.º 5
0
function bones_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-type.php';
    // launching operation cleanup
    add_action('init', 'bones_head_cleanup');
    // A better title
    add_filter('wp_title', 'rw_title', 10, 3);
    // remove WP version from RSS
    add_filter('the_generator', 'bones_rss_version');
    // remove pesky injected css for recent comments widget
    add_filter('wp_head', 'bones_remove_wp_widget_recent_comments_style', 1);
    // clean up comment styles in the head
    add_action('wp_head', 'bones_remove_recent_comments_style', 1);
    // clean up gallery output in wp
    add_filter('gallery_style', 'bones_gallery_style');
    // enqueue base scripts and styles
    add_action('wp_enqueue_scripts', 'bones_scripts_and_styles', 999);
    // ie conditional wrapper
    // launching this stuff after theme setup
    bones_theme_support();
    // adding sidebars to Wordpress (these are created in functions.php)
    add_action('widgets_init', 'bones_register_sidebars');
    // cleaning up random code around images
    add_filter('the_content', 'bones_filter_ptags_on_images');
    // cleaning up excerpt
    add_filter('excerpt_more', 'bones_excerpt_more');
}
Ejemplo n.º 6
0
function openaid_init()
{
    add_theme_support('angular-wp-api', array('oipa'));
    //Allow editor style.
    add_editor_style(get_stylesheet_directory_uri() . '/library/css/editor-style.css');
    // let's get language support going, if you need it
    //load_theme_textdomain( 'bonestheme', get_template_directory() . '/library/translation' );
    // USE THIS TEMPLATE TO CREATE CUSTOM POST TYPES EASILY
    //require_once( 'library/custom-post-type.php' );
    // launching operation cleanup
    add_action('init', 'bones_head_cleanup');
    // remove WP version from RSS
    add_filter('the_generator', 'bones_rss_version');
    // remove pesky injected css for recent comments widget
    add_filter('wp_head', 'bones_remove_wp_widget_recent_comments_style', 1);
    // clean up comment styles in the head
    add_action('wp_head', 'bones_remove_recent_comments_style', 1);
    // clean up gallery output in wp
    add_filter('gallery_style', 'bones_gallery_style');
    // enqueue base scripts and styles
    add_action('wp_enqueue_scripts', 'bones_scripts_and_styles', 999);
    // ie conditional wrapper
    // launching this stuff after theme setup
    bones_theme_support();
    // adding sidebars to Wordpress (these are created in functions.php)
    //add_action( 'widgets_init', 'bones_register_sidebars' );
    // cleaning up random code around images
    add_filter('the_content', 'bones_filter_ptags_on_images');
    // cleaning up excerpt
    add_filter('excerpt_more', 'bones_excerpt_more');
}
Ejemplo n.º 7
0
function bones_ahoy()
{
    //Allow editor style.
    add_editor_style(get_stylesheet_directory_uri() . '/library/css/editor-style.css');
    // let's get language support going, if you need it
    //load_theme_textdomain( 'bonestheme', get_template_directory() . '/library/translation' );
    // PHP FILES THAT I AM INCLUDING
    //require_once( 'library/custom-post-type.php' );
    require_once 'library/acf-local-json/acf-local-json.php';
    //  require_once( 'library/github-updater/github-updater.php' );
    // launching operation cleanup
    add_action('init', 'bones_head_cleanup');
    // A better title
    add_filter('wp_title', 'rw_title', 10, 3);
    // remove WP version from RSS
    add_filter('the_generator', 'bones_rss_version');
    // remove pesky injected css for recent comments widget
    add_filter('wp_head', 'bones_remove_wp_widget_recent_comments_style', 1);
    // clean up comment styles in the head
    add_action('wp_head', 'bones_remove_recent_comments_style', 1);
    // clean up gallery output in wp
    add_filter('gallery_style', 'bones_gallery_style');
    // enqueue base scripts and styles
    add_action('wp_enqueue_scripts', 'bones_scripts_and_styles', 999);
    // ie conditional wrapper
    // launching this stuff after theme setup
    bones_theme_support();
    // adding sidebars to Wordpress (these are created in functions.php)
    add_action('widgets_init', 'bones_register_sidebars');
    // cleaning up random code around images
    add_filter('the_content', 'bones_filter_ptags_on_images');
    // cleaning up excerpt
    add_filter('excerpt_more', 'bones_excerpt_more');
}
Ejemplo n.º 8
0
function bones_ahoy()
{
    // launching operation cleanup
    add_action('init', 'bones_head_cleanup');
    // remove WP version from RSS
    add_filter('the_generator', 'bones_rss_version');
    // remove pesky injected css for recent comments widget
    add_filter('wp_head', 'bones_remove_wp_widget_recent_comments_style', 1);
    // clean up comment styles in the head
    add_action('wp_head', 'bones_remove_recent_comments_style', 1);
    // clean up gallery output in wp
    add_filter('gallery_style', 'bones_gallery_style');
    //To keep the count accurate, lets get rid of prefetching
    remove_action('wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0);
    add_action('wp_head', 'wpb_track_post_views');
    // enqueue base scripts and styles
    // NO *** add_action('wp_enqueue_scripts', 'bones_scripts_and_styles', 999);
    // launching this stuff after theme setup
    bones_theme_support();
    // adding sidebars to Wordpress (these are created in functions.php)
    // add_action( 'widgets_init', 'bones_register_sidebars' );
    // adding the bones search form (created in functions.php)
    add_filter('get_search_form', 'bones_wpsearch');
    //add_filter('pre_get_posts','searchfilter');
    // cleaning up random code around images
    add_filter('the_content', 'bones_filter_ptags_on_images');
    // cleaning up excerpt
    add_filter('excerpt_more', 'bones_excerpt_more');
}
Ejemplo n.º 9
0
function bones_ahoy()
{
    // launching operation cleanup
    add_action('init', 'bones_head_cleanup');
    // remove WP version from RSS
    add_filter('the_generator', 'bones_rss_version');
    // remove pesky injected css for recent comments widget
    add_filter('wp_head', 'bones_remove_wp_widget_recent_comments_style', 1);
    // clean up comment styles in the head
    add_action('wp_head', 'bones_remove_recent_comments_style', 1);
    // clean up gallery output in wp
    add_filter('gallery_style', 'bones_gallery_style');
    // ie conditional wrapper
    // launching this stuff after theme setup
    bones_theme_support();
    add_filter('the_content', 'bones_filter_ptags_on_images');
}
function bones_ahoy()
{
    add_action('init', 'bones_head_cleanup');
    // launching operation cleanup
    add_filter('the_generator', 'bones_rss_version');
    // remove WP version from RSS
    add_filter('wp_head', 'bones_remove_wp_widget_recent_comments_style', 1);
    // remove injected css for recent comments widget
    add_action('wp_head', 'bones_remove_recent_comments_style', 1);
    // clean up comment styles in the head
    add_filter('gallery_style', 'bones_gallery_style');
    // clean up gallery output in wp
    add_action('wp_enqueue_scripts', 'bones_scripts_and_styles', 999);
    bones_theme_support();
    add_filter('the_content', 'bones_filter_ptags_on_images');
    // cleaning up random code around images
    add_filter('excerpt_more', 'bones_excerpt_more');
    // cleaning up excerpt
}
Ejemplo n.º 11
0
function bones_ahoy()
{
    //Allow editor style.
    add_editor_style(get_stylesheet_directory_uri() . '/library/css/editor-style.css');
    // let's get language support going, if you need it
    load_theme_textdomain('bonestheme', get_template_directory() . '/library/translation');
    // USE THIS TEMPLATE TO CREATE CUSTOM POST TYPES EASILY
    require_once 'library/custom-post-type.php';
    // Add 'States' Post Type
    add_action('init', 'vpf_custom_post_types');
    function vpf_custom_post_types()
    {
        $args = array('labels' => array('name' => 'States', 'singular_name' => 'State'), 'rewrite' => array('slug' => 'state', 'with_front' => false), 'public' => true);
        register_post_type('state', $args);
    }
    // launching operation cleanup
    add_action('init', 'bones_head_cleanup');
    // A better title
    add_filter('wp_title', 'rw_title', 10, 3);
    // remove WP version from RSS
    add_filter('the_generator', 'bones_rss_version');
    // remove pesky injected css for recent comments widget
    add_filter('wp_head', 'bones_remove_wp_widget_recent_comments_style', 1);
    // clean up comment styles in the head
    add_action('wp_head', 'bones_remove_recent_comments_style', 1);
    // clean up gallery output in wp
    add_filter('gallery_style', 'bones_gallery_style');
    // enqueue base scripts and styles
    add_action('wp_enqueue_scripts', 'bones_scripts_and_styles', 999);
    // ie conditional wrapper
    // launching this stuff after theme setup
    bones_theme_support();
    // adding sidebars to Wordpress (these are created in functions.php)
    add_action('widgets_init', 'bones_register_sidebars');
    // cleaning up random code around images
    add_filter('the_content', 'bones_filter_ptags_on_images');
    // cleaning up excerpt
    add_filter('excerpt_more', 'bones_excerpt_more');
    // Disable emoji script
    remove_action('wp_head', 'print_emoji_detection_script', 7);
    remove_action('wp_print_styles', 'print_emoji_styles');
}