Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Customizing WordPress - Ioannis Karavas Softwar...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
WordPress Greek Community
April 28, 2015
Technology
2
400
Customizing WordPress - Ioannis Karavas Software Engineer
WordPress Greek Community
April 28, 2015
Tweet
Share
More Decks by WordPress Greek Community
See All by WordPress Greek Community
Filippos Karailanidis - Beyond ChatGPT: AI Toolkit for the WordPress Developer
wpgr
0
4
Orestis Samaras - Modern WordPress Development with Composer
wpgr
0
2
Eleni Tsertou - Ταχύτερο website με Persistent Object Cache: Μύθος ή Αλήθεια;
wpgr
0
2
George Korakas - WordPress Security 2025: From Real Threats to Practical Defenses
wpgr
0
3
Thanassis Zannias - Flexible WordPress Dev Environment with Docker
wpgr
0
40
Andreas Karavanas - AI Supercharged Landing Pages
wpgr
0
53
Όμορφα, γρήγορα και οικονομικά websites με WordPress
wpgr
0
53
Unlocking creativity - Marilia Darilli
wpgr
0
86
Έλλη Μουχτάρη - Χτίσε το προσωπικό σου brand και απόκτησε τους πελάτες που θες
wpgr
0
63
Other Decks in Technology
See All in Technology
AIと新時代を切り拓く。これからのSREとメルカリIBISの挑戦
0gm
0
410
あたらしい上流工程の形。 0日導入からはじめるAI駆動PM
kumaiu
4
620
Kubecon NA 2025: DRA 関連の Recap と社内 GPU 基盤での課題
kevin_namba
0
100
AIとともに歩む情報セキュリティ / Information Security with AI
kanny
4
2.9k
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1k
いよいよ仕事を奪われそうな波が来たぜ
kazzpapa3
3
310
メルカリのAI活用を支えるAIセキュリティ
s3h
8
5.8k
usermode linux without MMU - fosdem2026 kernel devroom
thehajime
0
120
システムのアラート調査をサポートするAI Agentの紹介/Introduction to an AI Agent for System Alert Investigation
taddy_919
2
1.2k
クレジットカード決済基盤を支えるSRE - 厳格な監査とSRE運用の両立 (SRE Kaigi 2026)
capytan
5
1.6k
Digitization部 紹介資料
sansan33
PRO
1
6.7k
Amazon Bedrock AgentCore EvaluationsでAIエージェントを評価してみよう!
yuu551
0
200
Featured
See All Featured
Chasing Engaging Ingredients in Design
codingconduct
0
110
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.1k
HDC tutorial
michielstock
1
340
Google's AI Overviews - The New Search
badams
0
900
Abbi's Birthday
coloredviolet
1
4.6k
How Software Deployment tools have changed in the past 20 years
geshan
0
32k
How to build a perfect <img>
jonoalderson
1
4.9k
Navigating Team Friction
lara
192
16k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.7k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.6k
The Invisible Side of Design
smashingmag
302
51k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.2k
Transcript
Customizing WordPress Customizing WordPress Ioannis Karavas Software Engineer
Music Industry E-commerce Organizations Who uses WordPress?
WordPress is customizable WordPress is customizable
Filters Filters
Filters Filters <?php add_filter( 'body_class', 'gimme_browser' ) ?> function gimme_browser($classes)
{ global $is_IE, $is_opera, $is_chrome, $is_iphone; if ($is_chrome) $classes[] = 'chrome'; elseif ($is_opera) $classes[] = 'opera'; ... return $classes; }
Actions Actions
Actions Actions add_action( 'user_register', 'handle_new_user' ); function handle_new_user($user_id) { $user_info
= ... $new_post = array( 'post_name' => $user_name, ... 'post_excerpt' => '...', 'post_content' => 'Prompt user...' ); wp_insert_post( $new_post, $wp_error ); }
Child Themes Child Themes
Child Themes Child Themes function child_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css');
} add_action( 'wp_enqueue_scripts', 'child_styles' ); functions.php is not overwritten!
Roles & Capabilities Roles & Capabilities
Roles & Capabilities Roles & Capabilities function restrict_editor() { $editorRole
= get_role( 'editor' ); $capabilities = array( 'edit_others_posts', ... ); foreach ( $capabilities as $capability ) { $editorRole->remove_cap( $capability ); } } add_action( 'init', 'restrict_editor' );
add_action( 'init', 'add_new_role' ); function add_new_role() { add_role( 'junior', __('Junior'),
array( 'read' => true, 'edit_posts' => true, 'delete_posts' => false, ) ); } Roles & Capabilities Roles & Capabilities
Custom Post Types Custom Post Types
Custom Post Types Custom Post Types add_action( 'init', 'create_custom_post_type' );
function create_custom_post_type() { register_post_type('projects', array( 'labels' => array( 'name' => __('Projects'), 'singular_name' => __('Projects'), ) ... ) ); }
WordPress WordPress Customization Customization
Thank you! Thank you! Ioannis Karavas Software Engineer