<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vara Prasad Jada</title>
    <description>The latest articles on DEV Community by Vara Prasad Jada (@varaprasadjada).</description>
    <link>https://dev.to/varaprasadjada</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4216972%2F12cf7c04-e083-4e1f-93fe-d5f899a58f9a.png</url>
      <title>DEV Community: Vara Prasad Jada</title>
      <link>https://dev.to/varaprasadjada</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/varaprasadjada"/>
    <language>en</language>
    <item>
      <title>Building My First WordPress.org Plugin: VaraStudy Vault Access Control</title>
      <dc:creator>Vara Prasad Jada</dc:creator>
      <pubDate>Fri, 30 Oct 2026 10:19:53 +0000</pubDate>
      <link>https://dev.to/varaprasadjada/building-my-first-wordpressorg-plugin-varastudy-vault-access-control-1115</link>
      <guid>https://dev.to/varaprasadjada/building-my-first-wordpressorg-plugin-varastudy-vault-access-control-1115</guid>
      <description>&lt;p&gt;I recently published my first WordPress plugin, &lt;strong&gt;VaraStudy Vault Access Control&lt;/strong&gt;, in the official WordPress.org Plugin Directory.&lt;/p&gt;

&lt;p&gt;The plugin was developed for VaraStudy Vault, an independent WordPress-based study-resource project. Its purpose is to provide co&lt;/p&gt;

&lt;p&gt;urse-wise and semester-wise access control for contributors while keeping publishing authority with administrators.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;A study-resource website can contain content for multiple courses, semesters, subjects and resource categories.&lt;/p&gt;

&lt;p&gt;When multiple contributors are allowed to submit content, unrestricted access can create problems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Contributors may access content outside their assigned courses.&lt;/li&gt;
&lt;li&gt;Semester selections may not match their assigned permissions.&lt;/li&gt;
&lt;li&gt;A contributor may link a resource to an unauthorized subject.&lt;/li&gt;
&lt;li&gt;Incorrect submissions may become publicly available without administrator review.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wanted a system that allowed contributors to submit relevant academic resources without giving them unrestricted publishing access.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;VaraStudy Vault Access Control adds course-group and semester-based permissions to an existing WordPress setup.&lt;/p&gt;

&lt;p&gt;The plugin works with these custom post types:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;subjects&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;study-materials&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;question-papers&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It uses the existing &lt;code&gt;course_group&lt;/code&gt; taxonomy and configured Advanced Custom Fields (ACF) fields.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Course and Semester Permissions
&lt;/h3&gt;

&lt;p&gt;Administrators can assign contributors specific course groups and semesters.&lt;/p&gt;

&lt;p&gt;Contributors are restricted to the content associated with their assigned scope rather than receiving unrestricted access.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Controlled Subject Selection
&lt;/h3&gt;

&lt;p&gt;Subject selectors are filtered according to the contributor's assigned course groups and semesters.&lt;/p&gt;

&lt;p&gt;The plugin also excludes Draft and Pending Review subjects from contributor subject selectors. Administrators retain unrestricted choices.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Administrator Moderation
&lt;/h3&gt;

&lt;p&gt;Contributor submissions are automatically sent for Pending Review.&lt;/p&gt;

&lt;p&gt;Administrators review the submitted content and decide whether to publish it. Contributors do not receive publishing authority through this workflow.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Validation During Saving
&lt;/h3&gt;

&lt;p&gt;The plugin performs additional validation after ACF fields are saved.&lt;/p&gt;

&lt;p&gt;For example, a Question Paper's semester must match both the contributor's assignment and the linked Subject's semester. Invalid submissions are kept as drafts and flagged.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Administrator Access
&lt;/h3&gt;

&lt;p&gt;Administrators retain unrestricted access to the relevant content and selection options.&lt;/p&gt;

&lt;h2&gt;
  
  
  Technical Requirements
&lt;/h2&gt;

&lt;p&gt;The plugin is designed to work with an existing WordPress study-resource setup.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;WordPress 6.0+&lt;/li&gt;
&lt;li&gt;PHP 7.4+&lt;/li&gt;
&lt;li&gt;Existing custom post types&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;course_group&lt;/code&gt; taxonomy&lt;/li&gt;
&lt;li&gt;Advanced Custom Fields (ACF)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The plugin does not register the custom post types or create the ACF fields. Those are expected to exist in the website.&lt;/p&gt;

&lt;h2&gt;
  
  
  Development and Testing
&lt;/h2&gt;

&lt;p&gt;I developed the plugin around the requirements of VaraStudy Vault and tested its functionality in my existing WordPress installation.&lt;/p&gt;

&lt;p&gt;Testing included:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Contributor access with assigned course groups and semesters.&lt;/li&gt;
&lt;li&gt;Semester filtering in Subject and Question Paper fields.&lt;/li&gt;
&lt;li&gt;Subject selection restrictions.&lt;/li&gt;
&lt;li&gt;Editing the contributor's own Draft and Pending Review content.&lt;/li&gt;
&lt;li&gt;Validation of unauthorized semester and subject combinations.&lt;/li&gt;
&lt;li&gt;Administrator access and publishing permissions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The plugin was released as version &lt;strong&gt;1.0.5&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Published on WordPress.org
&lt;/h2&gt;

&lt;p&gt;Publishing the plugin in the official WordPress.org Plugin Directory was an important milestone for this project.&lt;/p&gt;

&lt;p&gt;The plugin is publicly available:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://wordpress.org/plugins/varastudy-vault-access-control/" rel="noopener noreferrer"&gt;VaraStudy Vault Access Control – WordPress.org&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Source code:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/Varaprasad-Jada/varastudy-vault-access-control" rel="noopener noreferrer"&gt;GitHub Repository&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Learned
&lt;/h2&gt;

&lt;p&gt;This project gave me practical experience developing a WordPress plugin around an existing content architecture, working with custom post types and ACF, implementing permission checks, validating submitted data and preparing a release for the WordPress.org Plugin Directory.&lt;/p&gt;

&lt;p&gt;More importantly, it was an opportunity to turn a requirement from a real project into a reusable plugin.&lt;/p&gt;

&lt;p&gt;This is my first published WordPress plugin, and I plan to continue developing independent software projects under my own name.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Author:&lt;/strong&gt; Vara Prasad Jada&lt;br&gt;
&lt;strong&gt;Project:&lt;/strong&gt; VaraStudy Vault Access Control&lt;br&gt;
&lt;strong&gt;Version:&lt;/strong&gt; 1.0.5&lt;br&gt;
&lt;strong&gt;License:&lt;/strong&gt; GPL-3.0-or-later&lt;/p&gt;

</description>
      <category>wordpress</category>
      <category>php</category>
      <category>opensource</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
