1. Trang chủ
  2. » Công Nghệ Thông Tin

Professional wordpress plugin development

1,3K 114 1

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 1.323
Dung lượng 3,98 MB

Nội dung

CONTENTS Foreword Introduction Chapter : An Introduction to Plugins What is a Plugin? Available Plugins Advantages of Plugins Installing and Managing Plugins Summary Chapter : Plugin Foundation Creating a Plugin File Sanity Practices Header Requirements Determining Paths Activate/Deactivate Functions Uninstall Methods Coding Standards Plugin Development Checklist Summary Chapter : Hooks Actions Filters Using Hooks from Within a Class Creating Custom Hooks How to Find Hooks Summary Chapter : Integrating in WordPress Adding Menus and Submenus Creating Widgets Meta Boxes Keeping It Consistent Summary Chapter : Internationalization Internationalization and Localization Creating Translation Files Summary Chapter : Plugin Security Securing Your Plugin User Permissions Nonces Data Validation and Sanitization Formatting SQL Statements Security Good Habits Summary Chapter : Plugin Settings The Options API The Settings API The Transients API Saving Per-User Settings Storing Data in Custom Tables Summary Chapter : Users Working with Users Roles and Capabilities Limiting Access Customizing Roles Summary Chapter : HTTP API HTTP Requests Crash Course WordPress’ HTTP Functions Practice: Reading JSON from a Remote API Practice: Sending Data to a Remote API Practice: Reading Arbitrary Content Make Your Own Plugin Repository Special Case: Fetching Remote Feeds Summary Chapter 10 : The Shortcode API Creating Shortcodes Shortcode Tips Integrating Google Maps More Shortcode Quick Ideas Summary Chapter 11 : Extending Posts: Metadata, Custom Post Types, and Taxonomies Creating Custom Post Types Using Custom Post Types Post Metadata Creating Custom Taxonomies Using Custom Taxonomies A Post Type and Taxonomy Plugin Summary Chapter 12 : JavaScript and Ajax in WordPress jQuery–A Brief Introduction Ajax Adding JavaScript in WordPress Ajax in WordPress Summary Chapter 13 : Cron What is Cron? Scheduling Cron Events True Cron Practical Use Summary Chapter 14 : The Rewrite API Why Rewrite URLs How WordPress Handles Queries Practical Uses Summary Chapter 15 : Multisite Differences Enabling Multisite in WordPress Multisite Functions Multisite Database Schema Summary Chapter 16 : Debugging and Optimizing Supporting Old Versions (Not) Debugging Error Logging Caching Summary Chapter 17 : Marketing Your Plugin Choosing a License for Your Plugin Submitting to WordPress.org Getting Your Plugin Renowned Summary Chapter 18 : The Developer Toolbox Core as Reference Codex Tool Web Sites Community Resources Tools Summary Index 10 plugins, post types Post Tag post types assigning to posts and retrieving taxonomy_exists( ) function telephone number validation template_include filter hook template_redirect action hook temporary options testimonials testing, plugin functionality text strings mixed, validation validation TextMate 1309 The Loop the_content( ) function the_content filter hook the_except( ) function themes, plugins the_permalink( ) function the_terms( ) function the_title( ) function the_title filter hook time-limited content display toggling autoload parameter tools translation web sites top-level menus TortoiseSVN transactions, HTTP 1310 Transients API expiring options deleting retrieving saving plugin caching translation files MO PO POT storage tools functions ( ) function _e( ) function esc_attr ( ) function 1311 esc_attr_e( ) esc_attr_x( ) esc_html ( ) esc_html_e( ) esc_html_x( ) _ex( ) _n( ) _n_noop( ) _nx( ) _nx_noop( ) _x( ) plugins true cron Twitter API output format tag 1312 Twitter Info plugin U undefined variables uninstall hook uninstalling deactivate and necissity uninstall.php file uninstall.php file unused tags plugin update_blog_option( ) function update_option( ) function update_post_meta( ) function update_post_metadata( ) function updates development plugins 1313 post metadata update_user_meta( ) function URIs Author Plugin URL paths URLs endpoints rewriting Apache web server flushing rules plugin shop list WordPress sanitization database redirects 1314 search engine friendly user-friendly user contact methods, disabling user-entered data, sanitizing user IDs user input, Settings API user permissions user roles, built-in users Multisite per-user settings metadata deleting getting updating plugin creation user metadata 1315 profile pages, input fields URLs V validation dates email strings errors, feedback integers mixed text strings need for pure text strings versus sanitization serial numbers telephone numbers variable hooks variables class, $wpdb object 1316 environment, sanitization global, $blog_ID naming placeholders query, registering $return_posts SELECT server, sanitization undefined verification, nonces version compatibility Versions repository videos W web sites, tools WeblogToolsCollection.com widgets 1317 creating dashboard creating creating with options network content options, storage registering tag Widgets API widgets_init action hook window.onload WordCamps WordPress, plugins and version compatibility WordPress chat WordPress Meetups WordPress Object Cache WordPress Planet 1318 WordPress UI WordPress.org account creation plugin ideas repository SVN setup submission branding promoting readme.txt file submitting plugins to WP: :parse_request( ) function wp-content folder wp-content/mu-plugins directory wp-content/plugins directory wp-cron.php wp-load.php 1319 wp_add_dashboard_widget( ) function WP_Ajax_response class wpautop( ) function wp_cache_add( ) function wp_cache_delete( ) function wp_cache_get( ) function wp_cache_replace( ) function wp_cache_set( ) function wp_dashboard_setup action hook wpdb class $wpdb->insert( ) method $wpdb object class variables error display methods get_row( ) get_var( ) 1320 SELECT column SELECT generic results SELECT row SELECT variable superiority query tracking $wpdb objects, methods, all-in-one $wpdb->update( ) method WP_DEBUG_LOG wp_default_scripts( ) function wp_dequeue_script( ) function WPEngineer.com wp_enqueue_script( ) function core scripts custom scripts dependencies version numbers 1321 scripts in footer wp_enqueue_styles( ) function wp_get_schedules( ) function wp_head action hook wp_localize_script( ) function wpmu_create_blog( ) function wp_next_scheduled( ) function $wp_query object wp_redirect( ) function wp_register_script( ) function wp_remote_get( ) function wp_remote_head( ) function wp_remote_post( ) function wp_remote_retrieve_body( ) function wp_remote_retrieve_header( ) function wp_remote_retrieve_headers( ) function wp_remote_retrieve_response_code( ) function 1322 wp_remote_retrieve_response_message( ) function $wp_rewrite object wp_schedule_event( ) function wp_schedule_single_event( ) function wp_unschedule_event( ) function WP_Widget class wrap class wrappers, noConflict( ) X–Y–Z _x( ) function XSS (cross site scripting) zip uploader, plugin installation 1323 ... in WordPress, is critical knowledge when developing professional WordPress plugins WHAT IS A PLUGIN? A plugin in WordPress is a PHP script that extends or alters the core functionality of WordPress. .. Chapter : An Introduction to Plugins What is a Plugin? Available Plugins Advantages of Plugins Installing and Managing Plugins Summary Chapter : Plugin Foundation Creating a Plugin File Sanity Practices... customize WordPress through plugins WordPress has an amazing framework in place giving plugin developers the tools needed to extend WordPress in any way imaginable Understanding how plugins work,

Ngày đăng: 19/04/2019, 08:58

TỪ KHÓA LIÊN QUAN