[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-492672-105":59,"doc-detail-492672-en":131,"doc-similar-492672":163},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","developing-a-wordpress-plugin-lexis-radar","Developing a WordPress Plugin - Lexis Radar","","Guide to developing a WordPress plugin using Lexis Radar as a running example. Covers the plugin’s purpose for adding word explanations to a WordPress blog (especially GRE vocabulary, with extensible databases), and then details core development steps: PHP file headers, database operations with wpdb and $wpdb, creating plugin menus, connecting plugin hooks like add_filter to modify displayed article content, and using CSS/JavaScript for presentation effects. Also discusses an initial WordPress MU deployment approach.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/developing-a-wordpress-plugin-lexis-radar/492672/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/developing-a-wordpress-plugin-lexis-radar/492672.png","ImageObject",300,407,{"name":92,"@type":93},"Alex Sinclair","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-10","2026-10-01",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",14,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What problem does the Lexis Radar plugin aim to solve in a WordPress blog?","Question",{"text":113,"@type":114},"It provides explanations of different words, initially focusing on GRE vocabulary, and can be extended so bloggers can store and display any explanations they want visitors to see.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How does the document recommend handling database operations in a WordPress plugin?",{"text":118,"@type":114},"Use WordPress’s default database tables and operate them through the wpdb class, relying on the global $wpdb instance for insertions and selections.",{"name":120,"@type":111,"acceptedAnswer":121},"Which WordPress hook is used to modify article content before it reaches the browser?",{"text":122,"@type":114},"The document uses a filter hook, describing how WordPress runs before the_content and then modifies the displayed content by registering an add_filter function tied to add_lexisradar_words.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},492672,1791006652,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":24,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},1099523882182,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","DEVELOPING A WORDPRESS  \nPLUGIN  \nWith the previous knowledge about database design, SQL and PHP, now we are able to develop a WordPress plugin. We have already developed the “Lexis RadarVersion 1.0”, and soon new functions and data will be added to make it a more powerful and useful plugin.  \n1. Basic Introduction to Lexis Radar  \nAs it is shown in our proposal, Lexis Radar is a plugin aiming at providing  \nexplanations of different words in a WordPress blog, especially GRE vocabulary.  \n(see: [http://toyhouse.cc/group/lexisradar/page/proposal-of-team-lexisradar](http://toyhouse.cc/group/lexisradar/page/proposal-of-team-lexisradar)) In the later development of the plugin, we found that the usage of Lexis Radar should not be confined to GRE vocabulary. Every explanation that each blogger wishes to show to his or her visitors should be added to the database so that it can be displayed in the blog. The first version of Lexis Radar offers a database with GRE vocabulary and the morphs of each word. It also allows users to add their own data so that it is a fairly flexible plugin. Later we are also going to provide other kinds of database, such as images, URLs, etc.  \n2. WordPress Plugin Development  \nIt is easy to develop a WordPress plugin, since WordPress has already offered many examples and explanations in the API. Here I want to share some important part of the plugin development with you.  \n(1) File headers.  \nAll WordPress should have file headers at the beginning of the main PHP file to illustrate the basic information about the plugin and the authors. This information will be showed at the plugin management interface of WordPress and thus it is required. Our file header and its effect are showed below:  \n(2) Database Operations.  \nThe entire tables you use in a plugin should be located in the default database of WordPress. After correctly deploy your database, we can easily operate them with the class wpdb offered by WordPress. It provides a class of functions of all database manipulations. We have to use the global variable $wpdb, an instantiation of the class, in our PHP file. Its function can basically satisfy all our need. The  \nfollowing example shows two function of $wpdb: implementation of an insertion and return the result of selection.  \n(3) Edit the Menu of Plugin.  \nNoticing that the WordPress management interface as a menu of each plugin,  \nwhich is important for the interaction with the users. Additionally, with these menus, users are able to better manage the data. Therefore, it is of great  \nsignificance to edit such pages. WordPress offers an extremely easy way to achieve this. Simply call the functions named add_menu_page and add_submenu_page, then provide the title and the PHP files to be loaded, we create a menu for our plugin. Here is my example:  \n(4) Connect to Plugin Hooks.  \nMany WordPress plugins accomplish their goals by connecting to one or more WordPress plugin hooks. It is like defining an event trigger for the page. If one action in WordPress is detected, a corresponding event in the plugin is triggered, thus certain goals are achieved. There are different hooks in WordPress, and appropriately use them we can implement the goal of our plugin.  \nHere is an example for our Lexis Radar. The core function of this plugin is to compare all the word in an article with the data in the database, and then determine the words in the database and prepare the explanation for these words for further uses. WordPress offers a hook called filter, which can modify the text before sending it to the browser. I used this hook in the following way:  \nAs it is showed, before the_content is executed, that is displaying the content of an article in a browser, WordPress will check if any hooks are assigned to this function. I wrote a function add_lexisradar_words to compare all the words in the article with the data, and it is found to registered to this function, thus add_filter is executed and the content to be disp","cbCaib4AwFCzFGMD","https://ap.wps.com/l/cbCaib4AwFCzFGMD","pdf",234959,"English","# Basic Introduction to Lexis Radar\n# WordPress Plugin Development\n## File headers\n## Database Operations\n## Edit the Menu of Plugin\n## Connect to Plugin Hooks\n## Use CSS and JavaScript\n# A First Shot of WordPress MU","[{\"question\":\"What problem does the Lexis Radar plugin aim to solve in a WordPress blog?\",\"answer\":\"It provides explanations of different words, initially focusing on GRE vocabulary, and can be extended so bloggers can store and display any explanations they want visitors to see.\"},{\"question\":\"How does the document recommend handling database operations in a WordPress plugin?\",\"answer\":\"Use WordPress’s default database tables and operate them through the wpdb class, relying on the global $wpdb instance for insertions and selections.\"},{\"question\":\"Which WordPress hook is used to modify article content before it reaches the browser?\",\"answer\":\"The document uses a filter hook, describing how WordPress runs before the_content and then modifies the displayed content by registering an add_filter function tied to add_lexisradar_words.\"}]","Developing a WordPress Plugin - Lexis Radar | PDF",1790868220,13,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/81339a95f384ad626f8469caa3c3edbf.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/5aedc491c8825989ea1167ed8f309614.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/b9ef2bb12a881af6b926f44134781950.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/3cd3fe92559e7a09c91c30c445a0136e.webp",980,1268,{"list":164,"token":66},[165,171,177,184,191,198,205,212,219,226],{"doc_id":166,"doc_title":167,"file_type":138,"home_preview_img_url":168,"slug":169,"view_count":31,"category_name":30,"create_tm":170},7629,"Learning PHP MySQL And JavaScript With jQuery CSS And HTML5","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696633210/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=%2FG60u92toWRHyQ3QWufVtBtIvd4%3D","learning-php-mysql-and-javascript-with-jquery-css-and-html5",1776332408,{"doc_id":172,"doc_title":173,"file_type":138,"home_preview_img_url":174,"slug":175,"view_count":29,"category_name":30,"create_tm":176},681165,"Ruby on rails: The new GEM of web development - Introduction - Advantages of RoR framework - Architecture","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229997883788/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=4DKerLl%2BqNkTO5uwvWxc7OQGB04%3D","ruby-on-rails-the-new-gem-of-web-development-introduction-advantages-of-ror-framework-architecture",1793940554,{"doc_id":178,"doc_title":179,"file_type":138,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":30,"create_tm":183},506193,"KEYMASTER AI - AN INTELLIGENT PLATFORM FOR TYPING SKILL - ENHANCEMENT AND ANALYSIS","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229933299812/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=3I8Yv7EMRuhNJJMVEJcY3MgNpxQ%3D","keymaster-ai-an-intelligent-platform-for-typing-skill-enhancement-and-analysis",12,1791160752,{"doc_id":185,"doc_title":186,"file_type":138,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":30,"create_tm":190},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=BPlGsUasZSUV01Vf6BCf0ZcLvtQ%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",913,1785472614,{"doc_id":192,"doc_title":193,"file_type":138,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":30,"create_tm":197},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=TNqnSluMI0go%2FLoLihaswrEB4ew%3D","xnx-universal-transmitter-installation-manual",854,1776135954,{"doc_id":199,"doc_title":200,"file_type":138,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":30,"create_tm":204},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=L94ru21zBnAKOnbf1LCkUIeNKGY%3D","the-candlestick-trading-bible-trading-guide",804,1789767270,{"doc_id":206,"doc_title":207,"file_type":138,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":30,"create_tm":211},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=Mn%2Bw4qcC4jQ1ia2cgAzpzmob7%2Bc%3D","free-fire-proxy-server",565,1776135932,{"doc_id":213,"doc_title":214,"file_type":138,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":30,"create_tm":218},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=bO1NLL8CWyXTE48dcYwlGBuTgtM%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",498,1786012506,{"doc_id":220,"doc_title":221,"file_type":138,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":30,"create_tm":225},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=MW5bdD45G78SZPQ8KkSPsRJL%2BzY%3D","tiktok-content-tricks-from-0-to-fyp",489,1776338393,{"doc_id":227,"doc_title":228,"file_type":138,"home_preview_img_url":229,"slug":230,"view_count":231,"category_name":30,"create_tm":232},387603,"Building Applications with AI Agents - Multiagent Systems - Designing and Implementing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916172328/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=Lwufb5dlxO%2BLvWR0TNJnRIJeulA%3D","building-applications-with-ai-agents-multiagent-systems-designing-and-implementing",454,1790287169]