• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP bones_theme_support函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中bones_theme_support函数的典型用法代码示例。如果您正苦于以下问题:PHP bones_theme_support函数的具体用法?PHP bones_theme_support怎么用?PHP bones_theme_support使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了bones_theme_support函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: bones_ahoy

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');
}
开发者ID:WilliamWorkman,项目名称:House-Martin,代码行数:28,代码来源:functions.php


示例2: bones_ahoy

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');
}
开发者ID:kevinaloys,项目名称:osmc,代码行数:26,代码来源:bones.php


示例3: themeInit

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');
}
开发者ID:BILconference,项目名称:bil-theme,代码行数:25,代码来源:init.php


示例4: bones_ahoy

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');
}
开发者ID:coreymargulis,项目名称:karenmargulis,代码行数:30,代码来源:functions.php


示例5: bones_ahoy

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');
}
开发者ID:sixtwentytwo,项目名称:sixtwentytwo,代码行数:30,代码来源:functions.php


示例6: openaid_init

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');
}
开发者ID:siemvaessen,项目名称:openaidNL,代码行数:31,代码来源:functions.php


示例7: bones_ahoy

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');
}
开发者ID:agn1022,项目名称:BantamVLS,代码行数:34,代码来源:functions.php


示例8: bones_ahoy

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');
}
开发者ID:catlrlsn,项目名称:CATLR,代码行数:29,代码来源:bones.php


示例9: bones_ahoy

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');
}
开发者ID:plusplusminus,项目名称:asbd,代码行数:17,代码来源:bones.php


示例10: bones_ahoy

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
}
开发者ID:easyeisme,项目名称:trimark-design-preview-app,代码行数:19,代码来源:functions.php


示例11: bones_ahoy

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');
}
开发者ID:Valid,项目名称:voteforbernie.org,代码行数:42,代码来源:functions.php



注:本文中的bones_theme_support函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP bonus_info函数代码示例发布时间:2022-05-24
下一篇:
PHP bones_page_navi函数代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap