What’s WordPress
WordPress is installed on a web server, which either is part of an Internet hosting service or is a network host itself; the first case may be on a service like WordPress.com, for example, and the second case is a computer running the software package WordPress.org.
An example of the second case is a local computer configured to act as its own web server hosting WordPress for single-user testing or learning purposes. Features include a plugin architecture and a template system.
WordPress was used by more than 26.4% of the top 10 million websites as of April 2016
WordPress is the easiest and most popular blogging system in use on the Web, at more than 60 million websites.
Overview
Best WordPress IDE which i know – Code Lobster
CodeLobster IDE support
– PHP/HTML/CSS/JavaScript highlighting;
– Advanced PHP/HTML/CSS/JavaScript autocomplete;
– A powerful PHP debugger; context and dynamic Help;
– A code validator;
– Supported CMS: WordPress, Drupal, Joomla
– A SQL manager and much more…
WordPress development
Overview
styles.css: the heart of theme
functions.php: brain of theme
index.php: template of theme
header.php: header of theme, use get_header() -> get header of theme
footer.php: footer of theme, use get_footer() -> get footer of theme
sidebar.php: display sidebar of theme, use get_sidebar() -> get sidebar of theme
https://codex.wordpress.org/Developer_Documentation
Code Reference link
Codex Reference – WordPress, Action Hook, Filter Hook Reference
What’s Action Hook
– Modify database data.
– Send an email message.
– Modify the generated administration screen or front-end page sent to a user browser.
Use actions when you want to add something to the existing page such as stylesheets, JavaScript dependencies, or send an email when an event has happened.
Syntax:
add_action (‘hook event / hook event’, ‘function names’, priority) ;
Example:
function int_theme_setup()
{
}
add_action ('init', 'int_theme_setup');
Video:
What’s Filter Hook
Use filters when you want to manipulate data coming out of the database prior to going to the browser, or coming from the browser prior to going into the database.
Syntax:
add_filter (‘filter event / filter event’, ‘function names’) ;
Example:
<?php
$copyright = 'Design by zidane';
echo apply_filter ('zidane_copyright', $copyright);
function change_copyright ($output)
{
$output = 'Design by WordPress' ;
return $output;
}
add_filter ('$zidane_copyright', 'zidane_copyright' );
?>
Video:
If you have any feedback or questions, leave your comment, we can discuss about it!
Good night everybody 🙂
Zidane