دسترسی نامحدود
برای کاربرانی که ثبت نام کرده اند
برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید
در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید
برای کاربرانی که ثبت نام کرده اند
درصورت عدم همخوانی توضیحات با کتاب
از ساعت 7 صبح تا 10 شب
ویرایش:
نویسندگان: Yannick Lefebvre
سری:
ISBN (شابک) : 9781788299497, 1788299493
ناشر: Packt Publishing Ltd
سال نشر: 2017
تعداد صفحات: 386
زبان: English
فرمت فایل : EPUB (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود)
حجم فایل: 4 Mb
در صورت تبدیل فایل کتاب WordPress Plugin Development Cookbook به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.
توجه داشته باشید کتاب کتاب آشپزی توسعه افزونه وردپرس نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.
آموزش ایجاد پلاگین برای WordPress 4.x برای ارائه پروژه های سفارشی یا اشتراک گذاری با جامعه از طریق دستور العمل های گام به گام و نمونه کد درباره این کتاب آموزش نحوه تغییر و گسترش وردپرس برای انجام تقریباً هر کاری. مثالها و توضیحات مفصل وردپرس را مطابق با نیازهای پروژه خود قالبگیری کنید یا آن را تغییر دهید تا به نفع کل جامعه باشد. نیازهای شخصی خود، نیازهای مشتری، یا به اشتراک گذاشتن با جامعه، پس این کتاب برای شماست. آنچه خواهید آموخت کشف کنید که چگونه می توانید تماس های کاربر را با وردپرس ثبت کنید، که اساس ایجاد افزونه را تشکیل می دهد. ایجاد صفحات مدیریتی و افزودن بخش های مدیریت محتوای جدید را از طریق انواع پست های سفارشی و جداول پایگاه داده سفارشی کاوش کنید. دستهها و نمایههای کاربر، و ایجاد فرمهایی برای بازدیدکنندگان، صفحات خود را با استفاده از جاوا اسکریپت، AJAX و افزودن ویجتهای جدید به پلتفرم پویا کنید. و سیستم مدیریت محتوا را باز کنید. یادگیری نحوه گسترش قابلیتهای آن به شما امکان میدهد تا پتانسیل کامل آن را آزاد کنید، خواه مدیری باشید که تلاش میکند افزونه مناسب را بیابد، توسعهدهندهای با ایدهای عالی برای ارتقای پلتفرم برای جامعه، یا توسعهدهنده وبسایتی که برای تحقق بخشیدن به مشتری تلاش میکند. نیاز دارد. این کتاب به خوانندگان نشان می دهد که چگونه مجموعه گسترده ای از توابع API وردپرس را برای ایجاد پلاگین های با کیفیت بالا با رابط های مدیریتی با پیکربندی آسان هدایت کنند. با دستور العمل ها و مواد جدید به روز شده برای آخرین نسخه وردپرس 4.x، این ویرایش دوم به شما می آموزد که چگونه پلاگین هایی با پیچیدگی های مختلف ایجاد کنید، از چند خط کد گرفته تا برنامه های افزودنی پیچیده که قابلیت های پیچیده جدیدی را ارائه می دهند. شما با استفاده از مکانیزم های اساسی ارائه شده در وردپرس برای ایجاد افزونه ها و اجرای کد کاربر سفارشی شروع می کنید. سپس خواهید دید که چگونه پنل های مدیریتی طراحی کنید، ویرایشگر پست را با فیلدهای سفارشی تقویت کنید، داده های سفارشی را ذخیره کنید، و رفتار سایت را بر اساس ارزش فیلدهای سفارشی تغییر دهید. با استفاده از زبانهای برنامهنویسی، عناصر پویا را با خیال راحت در صفحات وب قرار میدهید و ابزارکهای جدیدی میسازید که کاربران میتوانند آنها را به نوارهای جانبی وردپرس و مناطق ویجت اضافه کنند. در پایان این کتاب، شما قادر خواهید بود تا پلاگین های وردپرس را برای انجام هر کاری که می توانید تصور کنید ایجاد کنید. سبک و رویکرد این کتاب آشپزی شما را از طریق ایجاد اولین پلاگین ساده خود به افزودن بخشها و ابزارکهای کاملاً جدید در رابط مدیریت راهنمایی میکند، بنابراین میتوانید نحوه تغییر و گسترش وردپرس را برای انجام تقریباً هر کاری بیاموزید. هر موضوع از طریق مثال های واقع گرایانه نشان داده شده است که نشان می دهد چگونه مشکلات رایج را حل کنیم، و به دنبال آن توضیحات مفصلی در مورد تمام مفاهیم استفاده شده ارائه می شود.
Learn to create plugins for WordPress 4.x to deliver custom projects or share with the community through detailed step-by-step recipes and code examples About This Book Learn how to change and extend WordPress to perform virtually any task Explore the plugin API through approachable examples and detailed explanations Mold WordPress to your project's needs or transform it to benefit the entire community Who This Book Is For If you are a WordPress user, developer, or a site integrator with basic knowledge of PHP and an interest to create new plugins to address your personal needs, client needs, or share with the community, then this book is for you. What You Will Learn Discover how to register user callbacks with WordPress, forming the basis of plugin creation Explore the creation of administration pages and adding new content management sections through custom post types and custom database tables Improve your plugins by customizing the post and page editors, categories and user profiles, and creating visitor-facing forms Make your pages dynamic using Javascript, AJAX and adding new widgets to the platform Learn how to add support for plugin translation and distribute your work to the WordPress community In Detail WordPress is a popular, powerful, and open Content Management System. Learning how to extend its capabilities allows you to unleash its full potential, whether you're an administrator trying to find the right extension, a developer with a great idea to enhance the platform for the community, or a website developer working to fulfill a client's needs. This book shows readers how to navigate WordPress' vast set of API functions to create high-quality plugins with easy-to-configure administration interfaces. With new recipes and materials updated for the latest versions of WordPress 4.x, this second edition teaches you how to create plugins of varying complexity ranging from a few lines of code to complex extensions that provide intricate new capabilities. You'll start by using the basic mechanisms provided in WordPress to create plugins and execute custom user code. You will then see how to design administration panels, enhance the post editor with custom fields, store custom data, and modify site behavior based on the value of custom fields. You'll safely incorporate dynamic elements on web pages using scripting languages, and build new widgets that users will be able to add to WordPress sidebars and widget areas. By the end of this book, you will be able to create WordPress plugins to perform any task you can imagine. Style and approach This cookbook will take you through the creation of your first simple plugin to adding entirely new sections and widgets in the administration interface, so you can learn how to change and extend WordPress to perform virtually any task. Each topic is illustrated through realistic examples showing how to solve common problems, followed by detailed explanations of all concepts used
Cover Copyright Credits About the Author About the Reviewers www.PacktPub.com Customer Feedback Table of Contents Preface Chapter 1: Preparing a Local Development Environment Introduction Installing a web server on your computer How to do it... How it works... There\'s more... Creating a remote web development environment See also Downloading and configuring a local WordPress installation Getting ready How to do it... How it works... Creating a local Subversion repository How to do it... How it works... There\'s more... Manual repository creation Other version control systems See also Importing initial files to a local Subversion repository Getting ready How to do it... How it works... See also Checking out files from a Subversion repository Getting ready How to do it... How it works... There\'s more... Subversion file statuses See also Committing changes to a Subversion repository Getting ready How to do it... How it works... There\'s more... Viewing the differences in modified files Updating files to latest repository version Reverting uncommitted file changes Viewing file history Installing a dedicated code editor/text editor Getting ready How to do it... How it works... Chapter 2: Plugin Framework Basics Introduction Creating a plugin file and header Getting ready How to do it... How it works... See also Adding output content to page headers using plugin actions How to do it... How it works... There\'s more... Action hooks online listings Searching for hooks in the WordPress source code See also Using WordPress path utility functions to load external files and images How to do it... How it works... There\'s more... See also Modifying the site generator meta tag using plugin filters How to do it... How it works... There\'s more... preg_replace function Filter hooks online listings and the apply_filters function See also Adding text after each item\'s content using plugin filters How to do it... How it works... There\'s more... get_the_title and get_permalink functions See also Inserting link statistics tracking code in page body using plugin filters Getting ready How to do it... How it works... See also Troubleshooting coding errors and printing variable content How to do it... How it works... There\'s more... Built-in WordPress debugging features See also Creating a new simple shortcode How to do it... How it works... See also Creating a new shortcode with parameters How to do it... How it works... See also Creating a new enclosing shortcode How to do it... How it works... See also Loading a style sheet to format plugin output Getting ready How to do it... How it works... See also Writing plugins using object-oriented PHP Getting ready How to do it... How it works... See also Chapter 3: User Settings and Administration Pages Introduction Creating default user settings on plugin initialization How to do it... How it works... There\'s more... Deactivation function See also Storing user settings using arrays Getting ready How to do it... How it works... See also Removing plugin data on deletion Getting ready How to do it... How it works... See also Creating an administration page menu item in the settings menu Getting ready How to do it... How it works... There\'s more... Settings hook priority to determine menu order See also Creating a multi-level administration menu How to do it... How it works... See also Adding menu items leading to external pages Getting ready How to do it... How it works... See also Hiding items which users should not access from the default menu How to do it... How it works... Rendering the admin page contents using HTML Getting ready How to do it... How it works... There\'s more... wp_nonce_field See also Processing and storing plugin configuration data Getting ready How to do it... How it works... See also Displaying a confirmation message when options are saved Getting ready How to do it... How it works... See also Adding custom help pages Getting ready How to do it... How it works... See also Rendering the admin page contents using the Settings API How to do it... How it works... There\'s more... Rendering a drop-down list settings field Rendering a text area settings field See also Accessing user settings from action and filter hooks Getting ready How to do it... How it works... See also Formatting admin pages using meta boxes Getting ready How to do it... How it works... See also Splitting admin code from the main plugin file to optimize site performance Getting ready How to do it... How it works... See also Storing style sheet data in user settings Getting ready How to do it... How it works... See also Managing multiple sets of user settings from a single admin page Getting ready How to do it... How it works... See also Creating network-level admin pages Getting ready How to do it... How it works... See also Chapter 4: The Power of Custom Post Types Introduction Creating a custom post type Getting ready How to do it... How it works... There\'s more... Changing the custom post type permalinks slug Adding a new section to the custom post type editor Getting ready How to do it... How it works... See also Displaying single custom post type items using a custom layout Getting ready How to do it... How it works... See also Displaying custom post type data in shortcodes Getting ready How to do it... How it works... There\'s more... do_shortcode function Adding custom categories for custom post types Getting ready How to do it... How it works... See also Adding custom fields to categories Getting ready How to do it... How it works... See also Hiding the category editor from the custom post type editor Getting ready How to do it... How it works... See also Displaying additional columns in the custom post list page Getting ready How to do it... How it works... See also Adding filters for custom categories to the custom post list page Getting ready How to do it... How it works... See also Adding Quick Edit fields for custom categories Getting ready How to do it... How it works... Updating page title to include custom post data using plugin filters Getting ready How to do it... How it works... Chapter 5: Customizing Post and Page Editors Introduction Capturing and displaying information using custom meta boxes Getting ready How to do it... How it works... There\'s more... Adding a new meta box to all post types (including custom ones) Displaying custom post data using filter functions Getting ready How to do it... How it works... See also Hiding the Custom Field section in the post editor Getting ready How to do it... How it works... Extending the post editor to allow users to upload files directly Getting ready How to do it... How it works... See also Chapter 6: Accepting User Content Submissions Introduction Creating a client-side content submission form Getting ready How to do it... How it works... See also Saving user-submitted content in custom post types Getting ready How to do it... How it works... There\'s more... Moderating user-submitted content See also Sending email notifications upon new submissions Getting ready How to do it... How it works... See also Implementing a CAPTCHA on user forms using an online service Getting ready How to do it... How it works... See also Using a local library to implement a CAPTCHA on user forms Getting ready How to do it... How it works... See also Chapter 7: Customizing User Data Introduction Adding custom fields to the user editor Getting ready How to do it... How it works... See also Processing and storing user custom data Getting ready How to do it... How it works... See also Displaying new user data in user list page Getting ready How to do it... How it works... See also Using custom user data in containing shortcode Getting ready How to do it... How it works... See also Chapter 8: Creating Custom MySQL Database Tables Introduction Creating new database tables Getting ready How to do it... How it works... There\'s more... Using phpMyAdmin to simplify code creation Create tables in network installation Deleting custom tables on plugin removal Getting ready How to do it... How it works... See also Updating custom table structure on plugin upgrade Getting ready How to do it... How it works... See also Displaying custom table data on an admin page Getting ready How to do it... How it works... See also Inserting and updating records in custom tables Getting ready How to do it... How it works... See also Deleting records from custom tables Getting ready How to do it... How it works... See also Displaying custom database table data in shortcodes Getting ready How to do it... How it works... See also Implementing a search function to retrieve custom table data Getting ready How to do it... How it works... See also Importing data from a user file into custom tables Getting ready How to do it... How it works... See also Chapter 9: Leveraging JavaScript, jQuery, and AJAX Scripts Introduction Safely loading jQuery onto WordPress web pages Getting ready How to do it... How it works... There\'s more... jQuery noconflict mode Displaying a pop-up dialog using the built-in ThickBox plugin Getting ready How to do it... How it works... There\'s more... Removing the dialog close button Displaying pop-up dialogs on select pages Controlling pop-up dialog display using shortcodes Getting ready How to do it... How it works... See also Displaying a calendar day selector using the Datepicker plugin Getting ready How to do it... How it works... Adding tooltips to admin page form fields using the TipTip plugin Getting ready How to do it... How it works... See also Using AJAX to dynamically update partial page contents Getting ready How to do it... How it works... See also Chapter 10: Adding New Widgets to the WordPress Library Introduction Creating a new widget in WordPress Getting ready How to do it… How it works… There\'s more… Plugins extending other plugins See also Displaying configuration options Getting ready How to do it… How it works… See also Validating configuration options Getting ready How to do it… How it works… See also Implementing the widget display function Getting ready How to do it… How it works… See also Adding a custom dashboard widget Getting ready How to do it… How it works… See also Adding a custom widget to the network dashboard Getting ready How to do it… How it works… See also Chapter 11: Enabling Plugin Internationalization Introduction Changing the WordPress language configuration Getting ready How to do it… How it works… Adapting default user settings for translation Getting ready How to do it… How it works… See also Making admin page code ready for translation Getting ready How to do it… How it works… See also Modifying shortcode output for translation Getting ready How to do it… How it works… See also Translating text strings using Poedit Getting ready How to do it… How it works… There\'s more… Translation template file See also Loading a language file in the plugin initialization Getting ready How to do it… How it works… There\'s more… Updating a translation file Advanced translation functions Localizing JavaScript files See also Chapter 12: Distributing Your Plugin on wordpress.org Introduction Creating a README file for your plugin Getting ready How to do it… How it works… There\'s more… Releasing specific plugin versions using tags Applying for your plugin to be hosted on WordPress.org How to do it… How it works… See also Uploading your plugin using Subversion Getting ready How to do it… How it works… There\'s more… Checking out plugins to your development installation See also Providing plugin banner and thumbnail images Getting ready How to do it… How it works… See also Index