Launch a Web Service in 3 Days Using WordPress

download Launch a Web Service in 3 Days Using WordPress

of 43

  • date post

    23-Aug-2014
  • Category

    Internet

  • view

    2.546
  • download

    2

Embed Size (px)

description

 

Transcript of Launch a Web Service in 3 Days Using WordPress

  • Launch a Web Service in 3 Days Using WordPress WordPress 3 Case : .jp means heartbreak in English
  • ABOUT ME KITE Web Designer, Programmer,Web Director, Graphic Designer,Art Director, Creative Director
  • SNS Kaito Koga https://www.facebook.com/kaito.koga.9 Facebook Twitter [email protected] https://twitter.com/ixkaito
  • http://.jp/ (http://heartbreak.jp/)
  • TODAYSTHEME The Impulse Why WordPress? WordPress Plugins and Customization
  • THE IMPULSE Access http://heartbreak.jp! .jp Today, let me talk about more details.
  • http://www.lifehacker.jp/
  • http://www.roomie.jp/2013/05/77444/
  • Need a web service for heartbreak!
  • Post Comment FUNCTIONS
  • Post Comment FUNCTIONS Its WordPress! WordPress
  • Simple Responsive DESIGN
  • Simple Responsive DESIGN ItsTwentyTwelve! TwentyTwelve
  • Membership: Anyone can register New User Default Role: Author SETTINGS
  • PLUGINS
  • http://wordpress.org/plugins/login-lockdown/
  • http://wordpress.org/plugins/crazy-bone/
  • http://wordpress.org/plugins/advanced-custom-elds/
  • DEFAULT LOGIN PAGE
  • LOGIN PAGE OF HEARTBREAK.JP .jp
  • DEFAULT EDITOR
  • EDITOR OF HEARTBREAK.JP .jp
  • DEFAULT PROFILE
  • PROFILE OF HEARTBREAK.JP .jp
  • Add Admin Style Sheet function kite_admin_style(){ echo ''."n"; } add_action('login_head', 'kite_admin_style', 99); add_action('admin_head', 'kite_admin_style', 99);
  • Change the URL andTitle Attribution of Login Header title function kite_login_headerurl(){ return get_home_url(); } add_filter('login_headerurl', 'kite_login_headerurl'); ! function kite_login_headertitle(){ return '.jp'; } add_filter('login_headertitle', 'kite_login_headertitle');
  • function shitsuren_admin_color() { return 'light'; } add_filter( 'get_user_option_admin_color', 'shitsuren_admin_color' ); remove_filter( 'admin_color_scheme_picker', 'admin_color_scheme_picker' ); Disable Admin Color Scheme
  • Remove Admin Bar Menus function kite_remove_admin_bar_menus($wp_admin_bar){ if(!current_user_can('level_10')){ $wp_admin_bar->remove_node('wp-logo'); // WordPress $wp_admin_bar->remove_node('comments'); // // $wp_admin_bar->remove_node('new-content'); // // $wp_admin_bar->remove_node('new-post'); // - $wp_admin_bar->remove_node('new-media'); // - // $wp_admin_bar->remove_node('new-page'); // - // $wp_admin_bar->remove_node('new-user'); // - $wp_admin_bar->remove_node('search'); // // $wp_admin_bar->remove_node('edit-profile'); // // $wp_admin_bar->remove_node('user-info'); // } } add_action('admin_bar_menu', 'kite_remove_admin_bar_menus', 99);
  • Remove Side Menus of Dashboard function kite_remove_admin_side_menus(){ if(!current_user_can('level_10')){ remove_menu_page('index.php'); // // remove_menu_page('edit.php'); // remove_menu_page('upload.php'); // remove_menu_page('link-manager.php'); // remove_menu_page('edit.php?post_type=page'); // remove_menu_page('edit-comments.php'); // remove_menu_page('themes.php'); // remove_menu_page('plugins.php'); // remove_menu_page('users.php'); // remove_menu_page('tools.php'); // remove_menu_page('options-general.php'); // } } add_action('admin_menu', 'kite_remove_admin_side_menus');
  • Die Admin Menus function kite_die_admin_menu(){ if(!current_user_can('level_10')){ wp_die( '' ); } } add_action('admin_head-upload.php', 'kite_die_admin_menu'); // add_action('admin_head-media-new.php', 'kite_die_admin_menu'); // - add_action('admin_head-edit-comments.php', 'kite_die_admin_menu'); // add_action('admin_head-tools.php', 'kite_dashboard_redirect'); //
  • Hide Help Button of Dashboard function kite_hide_help(){ if(!current_user_can('level_10')){ echo ''; } } add_action('admin_head', 'kite_hide_help'); add_action('admin_print_styles', 'kite_hide_help', 21);
  • Dashboard Redirect function kite_dashboard_redirect(){ if(!current_user_can('level_10')){ $admin_urls = array('index', 'upload', 'media-new', 'edit-comments', 'tools', 'admin'); foreach ($admin_urls as $url){ if(get_home_url().$_SERVER['SCRIPT_NAME'] === admin_url($url.'.php')){ wp_redirect(admin_url( 'edit.php' )); exit(); } } } } add_action('init', 'kite_dashboard_redirect');
  • Exclude Others Posts in Dashboard function kite_exclude_other_posts($wp_query){ if (isset($_REQUEST['post_type']) && post_type_exists($_REQUEST['post_type'])){ $post_type = get_post_type_object($_REQUEST['post_type']); $cap_type = $post_type->cap->edit_other_posts; } else { $cap_type = 'edit_others_posts'; } ! if ( is_admin() && $wp_query->is_main_query() && !$wp_query->get('author') && ! current_user_can($cap_typ)){ $user = wp_get_current_user(); $wp_query->set('author', $user->ID); } } add_action('pre_get_posts', 'kite_exclude_other_posts');
  • Remove Post Columns in Dashboard function kite_custom_posts_columns ($columns) { // unset($columns['cb']); // // unset($columns['title']); // // unset($columns['author']); // unset($columns['categories']); // unset($columns['tags']); // // unset($columns['comments']); // // unset($columns['date']); // return $columns; } add_filter('manage_posts_columns', 'kite_custom_posts_columns');
  • RequireTitle function kite_require_title() { ?>