Latest posts
-
Day 20: Theme Modification, Filesystem, File Header, and XML-RPC APIs
1. Theme Modification API The Theme Modification API is essential for developers who want to provide users with customizable theme options. This API allows you to save, retrieve, and manage theme settings without directly editing the theme files. These functions provide a powerful way to store user preferences such as custom colors, logos, or layout…
-
Assignment – Analysis
Readme CheckList: SKELETON CheckList: phpcs.xml rt-config mu-plugins plugins themes webroot-files Development.md CheckList Branch Naming Convention Pull Request and Issue Notes WordPress Development Basics Prerequisite: Update phpcs.xml and add domain for website in it. Recommended Project Structure Plugin: In inc/traits/trait-singleton.php, define a singleton trait to enable the use of a single instance for any class by calling…
-
Day 17: WordPress: WPQ, Plugin, Settings, MetaData
Using the Plugin API The Plugin API allows you to interact with WordPress core functionality. Let’s add an admin notice using the Plugin API: Using the Settings API The Settings API allows you to add settings fields and sections to the WordPress admin. Here’s how you can add a basic settings page: This code creates…
-
Day 16: CS & WordPress Plugin Development
Peer Coding Review Why Peer Review is Absolutely Necessary in Enterprises? 1. Enhances Code Quality 2. Knowledge Sharing 3. Improves Security 4. Facilitates Collaboration 5. Reduces Technical Debt 6. Boosts Developer Confidence 7. Increases Efficiency Security Plugin Development Hooks Custom Post Types Nonces Filters & Sanitization Actions Sanitization / Escaping – These are the filters that…
-
Day 15: TDD & WordPress CS
Introduction to TDD and Its Application in WordPress Test-Driven Development (TDD) is a software development approach where tests are written before the actual code. The process follows a cycle of writing a test, ensuring it fails, writing the minimal code to pass the test, and then refactoring the code while keeping all tests passing. TDD…
-
Day 12: MultiSite & PHP Unit Testing
Multisite / Network WordPress allows you to set up a network of websites using the same core files but with different login credentials and separate dashboards. Each site is independent of each other but can be managed from one place by the Network Admin (aka Super Admin). Key points: To enable Multisite, you need to…
-
Day 9: HSTS, Web and Beyond.
What is HSTS? HSTS – HTTP Strict Transport Security is a security policy mechanism that helps websites against man-in-the-middle attacks such as protocol downgrade attacks (HTTP) and cookie hijacking. Key Features of HSTS: How the web works? Diagram: How the Web Works Key Components: Browser and Rendering Engines While we may observe over a dozen web…
-
Day 8: Web Basics – HTTPs, HTTP, DNS
Domain Name System Domain Name System (DNS) is a critical component of the Internet’s infrastructure that translates human-friendly names, such as rtcamp.com, into IP addresses. How DNS Works Importance of DNS What is HTTP? Definition and Role HTTP (Hypertext Transfer Protocol) is the foundation of data communication on the web. It defines how messages are…
-
Day 6: JS & OS Concepts & PHP Autoloaders
What is an Operating System? Operating System definition: An Operating System is a layer of systems software that: OS Elements OS Design Principles User/ Kernel Protection Boundary Basic OS services Linux System Calls Task Commands Process Control fork (); exit(); wait(); File Manipulation open(); read(); write(); Device Manipulation ioctl(); read(); write(); Information Maintenance getpid(); alarm(); sleep(); Communication…
-
Day 5: MySQL & CSS & JS + clean code concepts
What is MySQL? PHP 5 and later can work with a MySQL database using: MySQLi extension: How to connect? Create a MySQL Database The CREATE DATABASE statement is used to create a new SQL database. CREATE DATABASE databasename; Ex: Mysqli OOP way Drop Database: The DROP DATABASE statement is used to drop an existing SQL database. DROP DATABASE databasename; Create: The CREATE…