professional wordpress plugin development
professional wordpress plugin development
professional wordpress plugin development

دانلود کتاب آموزش ساخت پلاگین حرفه ای در وردپرس

شما در این کتاب آموزشی ساخت پلاگین برای وردپرس به خوبی یاد می گیرید که چگونه پلاگین های استاندارد و حرفه ای بسازید . 

سرفصل های کتاب را میتوانید در زیر مشاهده کنید.

CHAPTER 1: AN INTRODUCTION TO PLUGINS
What Is a Plugin?

How Plugins Interact with WordPress
When Are Plugins Loaded?
Available Plugins

Offi cial Plugin Directory
Popular Plugin Examples
Popular Plugin Tags

Advantages of Plugins

Not Modifying Core
Why Reinvent the Wheel
Separating Plugins and Themes
Easy Updates
Easier to Share and Reuse
Plugin Sandbox
Plugin Community
Installing and Managing Plugins
Installing a Plugin
Managing Plugins
Editing Plugins
Plugin Directories
Types of Plugins
Testing Plugin Functionality

Summary

CHAPTER 2: PLUGIN FOUNDATION
Creating a Plugin File

Naming Your Plugin
Using a Folder

Sanity Practices

Prefi x Everything
File Organization
Folder Structure

CONTENTS
Header Requirements

Creating the Header
Plugin License

Determining Paths

Plugin Paths
Local Paths
URL Paths

Activate/Deactivate Functions
Plugin Activation Function
Create Default Settings on Activate
Plugin Deactivation Function
Deactivate Is Not Uninstall
Uninstall Methods

Why Uninstall Is Necessary
Uninstall.php
Uninstall Hook
Coding Standards

Document Your Code
Naming Variables, Functions, and Files
Single and Double Quotes
Indentation
Brace Style
Space Usage
Shorthand PHP
SQL Statements
Plugin Development Checklist
Summary

CHAPTER 3: HOOKS

Actions

What Is an Action?
Action Hook Functions
Commonly Used Action Hooks
Filters

What Is a Filter?
Filter Hook Functions
Quick Return Functions
Commonly Used Filter Hooks
Using Hooks from Within a Class
Creating Custom Hooks
Benefi ts of Creating Custom Hooks

Custom Action Hook Example
Custom Filter Hook Example
How to Find Hooks

Searching for Hooks in the Core Code
Variable Hooks
Hook Reference Lists
Summary

CHAPTER 4: INTEGRATING IN WORDPRESS
Adding Menus and Submenus
Creating a Top-Level Menu
Adding a Submenu
Adding a Menu Item to an Existing Menu
Creating Widgets

Creating a Widget
Advanced Widget
Creating Dashboard Widgets
Creating a Dashboard Widget with Options
Meta Boxes

Adding a Custom Meta Box
Saving Meta Box Data
Advanced Meta Box

Keeping It Consistent

Using the WordPress UI
Headings
Icons
Messages
Buttons
Links
Form Fields
Tables
Pagination

Summary

CHAPTER 5: INTERNATIONALIZATION 97
Internationalization and Localization 97
Why Internationalize?
Understanding Internationalization in Professional Work
Getting Your Plugin Ready for Translation
Echoing and Returning Strings

CONTENTS
Using Placeholders
Internationalizing JavaScript
Creating Translation Files
The MO and PO Files
Translation Tools
How to Create a POT File
Where to Store Translation Files
Summary

CHAPTER 6: PLUGIN SECURITY
Securing Your Plugin

What Securing Your Plugin Is
What Securing Your Plugin Is Not
User Permissions

How to Check current_user_can()
Do Not Check Too Early
Nonces

Authority Versus Intention
What Is a Nonce?
How to Create and Verify Nonces
Nonces in Ajax Scripts 120

Data Validation and Sanitization 127
The Need for Data Validation and Sanitization
Good Practice: Identifying Potentially Tainted Data
Validating or Sanitizing Input?
Validating and Sanitizing Cookbook
Formatting SQL Statements
The $wpdb Object
Why wpdb Methods Are Superior
All-in-One Methods
Common Methods
Protecting Queries Against SQL Injections
Miscellaneous wpdb Methods and Properties
Security Good Habits
Summary

CHAPTER 7: PLUGIN SETTINGS
The Options API

Saving Options
Saving an Array of Options
Retrieving Options
xii

165CONTENTS
Loading an Array of Options
Deleting Options
The Autoload Parameter

The Settings API

Benefi ts of the Settings API
Settings API Functions
Wrapping It Up: A Complete Plugin Management Page
Improving Feedback on Validation Errors
Adding Fields to an Existing Page
The Transients API

Saving an Expiring Option
Retrieving an Expiring Option
Deleting an Expiring Option
A Practical Example Using Transients
Technical Details
Transient Ideas
Saving Per-User Settings

Crafting a Plugin
User Metadata
Saving User Metadata
Updating User Metadata
Getting User Metadata
Deleting User Metadata
Getting a User’s ID
Adding Input Fields to a Profi le Page
BOJ’s Admin Lang Plugin
Per-User Settings: Best Practices
Storing Data in Custom Tables
Types of Data
WordPress’ Standard Tables
Creating a Custom Table
Updating the Structure of a Custom Table
dbDelta() Tips for Success
Accessing Your Custom Table

CHAPTER 8: USERS

Working with Users

User Functions
Creating, Updating, and Deleting Users
User Data

CONTENTS
User Metadata

Roles and Capabilities

What Are Roles and Capabilities?
Default Roles
Custom Roles
Limiting Access

Checking User Permissions
Is the User an Admin?
Allowing Custom Permissions
Customizing Roles

Creating a Role
Deleting a Role
Adding Capabilities to a Role
Removing Capabilities from a Role
A Custom Role and Capability Plugin
Summary

CHAPTER 9: HTTP API

HTTP Requests Crash Course
What Is an HTTP Request?
How to Make HTTP Requests in PHP
WordPress’ HTTP Functions
The wp_remote_ Functions
Advanced Confi guration and Tips
Practice: Reading JSON from a Remote API
Getting and Reading JSON
Your Functional Plugin
Practice: Sending Data to a Remote API
Formatting Parameters for POST Requests
Your Functional Plugin
Practice: Reading Arbitrary Content
Make Your Own Plugin Repository
How Plugin Upgrades Work in WordPress
Polling an Alternative API from a Plugin
Building the Alternative API
A Few Words of Caution About Self-Hosted API
Special Case: Fetching Remote Feeds
Summary

CHAPTER 10: THE SHORTCODE API
Creating Shortcodes

What Shortcodes Are

CONTENTS
Register Custom Shortcodes
Shortcode Tips

Think Simplicity for the User
Remember the Dynamicity
Look Under the Hoods
A “bb code” for Comments Plugin
Shortcode Nesting Limitations
Integrating Google Maps

Accessing the Google Geocoding API
Storing API Results
Accessing the Google Maps API
More Shortcode Quick Ideas
Display Member-Only Content
Display Time-Limited Content
Obfuscate Email Addresses
Summary

CHAPTER 11: EXTENDING POSTS: METADATA
CUSTOM POST TYPES, AND TAXONOMIES
Creating Custom Post Types
Post Type Possibilities
Registering a Post Type
Setting Post Type Labels
Using Custom Capabilities
Attaching Existing Taxonomies
Using Custom Post Types

Creating a Custom Post Type Loop
Retrieving Custom Post Type Content
Checking if a Post Type Exists
Post Metadata

Adding Post Metadata
Retrieving Post Metadata
Updating Post Metadata
Deleting Post Metadata

Creating Custom Taxonomies
Understanding Taxonomies
Registering a Custom Taxonomy
Assigning a Taxonomy to a Post Type
Using Custom Taxonomies

Retrieving a Taxonomy
Using a Taxonomy with Posts
Taxonomy Conditional Tags

CONTENTS
A Post Type and Taxonomy Plugin
Summary

CHAPTER 12: JAVASCRIPT AND AJAX IN WORDPRESS

jQuery–A Brief Introduction 333
Benefi ts of Using jQuery
jQuery Crash Course 334

What Is Ajax?
Ajax Best Practices

Adding JavaScript in WordPress
A Proper Way to Include Scripts
Where to Include Scripts
Adding Scripts Only When Needed
Dynamic Scripts in WordPress
Ajax in WordPress

Ajax in WordPress: Principles
A Complete Example: Instant “Read More” Links
Another Example: Frontend Comment Deletion
Debugging Ajax
Summary

CHAPTER 13: CRON

What Is Cron?

How Is Cron Executed?
Scheduling Cron Events
Scheduling a Recurring Event
Scheduling a Single Event
Unscheduling an Event
Specifying Your Own Cron Intervals
Viewing Cron Events Scheduled
True Cron
Practical Use

Deleting Post Revisions Weekly
The Blog Pester Plugin
The Delete Comments Plugin
Summary

CHAPTER 14: THE REWRITE API
Why Rewrite URLs

Permalink Principles

CONTENTS
Apache’s mod_rewrite
URL Rewriting in WordPress

How WordPress Handles Queries 406
Overview of the Query Process
The rewrite Object
The query Object
What Plugins Can Do 406

Practical Uses

Rewriting a URL to Create a List of Shops
Creating a New Permalink Structure and Integrating
Non-WordPress Pages
Adding an Endpoint and Altering Output Format
Adding a Custom Feed for the Latest Uploaded Images
Summary

CHAPTER 15: MULTISITE

Diff erences

WordPress Versus Multisite Network
Understanding Multisite Terminology
Advantages of Multisite
Enabling Multisite in WordPress
Multisite Functions
The Power of Blog ID
Common Functions
Switching and Restoring Sites
Network Content Shortcode Examples
A Network Content Widget Example
Creating a New Site
Multisite Site Options
Users in a Network
Multisite Super Admin
Checking the Site Owner
Network Stats

Multisite Database Schema
Multisite-Specifi c Tables
Site-Specifi c Tables

Summary

CHAPTER 16: DEBUGGING AND OPTIMIZING
Supporting Old Versions (Not)
Keeping Current with WordPress Development

CONTENTS
Deprecated Functions
Dealing with Obsolete Client Installs
Debugging

Enabling Debugging
Displaying Debug Messages
Correcting Debug Messages
Error Logging

Enabling Logging
Setting Log File Location
Understanding the Log File
Caching

Saving, Loading, and Deleting Cached Data
Caching Data Within a Plugin
Summary

CHAPTER 17: MARKETING YOUR PLUGIN

Choosing a License for Your Plugin 480
Diff erent Options
Why It Matters
Making Money While Using the GPL 480

Submitting to WordPress.org 482
Creating an Account
Submitting a Plugin
Setting Up SVN
Creating a readme.txt File 484
Getting Your Plugin Renowned 489
Naming Your Plugin
Building a Web Site
Creating a Page for Your Plugin
Announcing Your Plugin
Supporting Your Plugins
Getting Feedback
Getting Out of the Basement
Other Promotion Methods 489

CHAPTER 18: THE DEVELOPER TOOLBOX
Core as Reference
Inline Documentation
Finding Functions
Common Core Files

CONTENTS
Codex

Searching the Codex
Function Reference

Tool Web Sites

PHPXref
Hooks Database

Community Resources

Support Forums
Mailing Lists
WordPress Chat
WordPress Development Updates
WordPress Ideas
Community News Sites
Local Events
Tools

Browser
Editor
Deploying Files with FTP, SFTP, and SSH
phpMyAdmin

لینک مستقیم دانلود کتاب آموزش ساخت پلاگین حرفه ای وردپرس

Mohammad Pishdar

I have B.A. in Software Engineering and I'M a professional programmer of WordPress software

۱۲ پاسخ

  1. فوق العاده اید …

    بسیار ممنون

  2. کانکس گفت:

    دوست عزیز این کتاب انگلیسی هست یا فارسی؟

  3. صالح گفت:

    های.
    کتاب خوبیه ولی خیلی کامل نیست!

  4. جهان گفت:

    مرسی بابت این کتاب

  5. سلام

    مطالب واقعا مفیدی دارید ،، مرسی از اینکه هستید

    من همیشه این جا میام

  6. سلام
    جناب pishdar عزیز زبان این کتاب فارسیه یا انگلیسی ؟
    تشکر از سایت خوبتون

  7. خیلی خوبه
    تشکر از معرفی این کتاب

پاسخ دهید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *

هشت + شانزده =