Skip to content

Posts by Asif Mughal

51 articles

Content types, taxonomies and custom fields

Add your own kinds of content to Basehim from an app: content types with public pages, archives, sitemap and search; taxonomies with term pages; custom fields checked against a schema and shown in the editor; theme templates and helpers (bh_field, bh_query); the app API, REST API and MCP; and the editor's permalink line and preview.

Asif Mughal

Search

BH Search, Basehim's one search framework for core and apps: how searching works everywhere (every word in any order, phrases, exclusions), the shared index and its engines, Settings → Search, making an app's records searchable with api()->search(), search results in themes, custom engines and measured performance at a million items.

Asif Mughal

Build with AI

How to build Basehim apps and themes with an AI assistant: three ways to work (a chat assistant, a coding agent on your computer, or an assistant connected to your site through MCP and Basehim Dev Tools), a safe step-by-step workflow, and what to check before anything reaches a live site.

Asif Mughal

Prompts for building with AI

Ready-made prompts for building Basehim apps and themes with an AI assistant: a new app, admin screens, AJAX, public pages, widgets, scheduled imports, uploads, MCP tools, themes, reviews, fixes, migrations and release notes. Fill in the blanks and paste.

Asif Mughal

AI context for Basehim development

One compact page of rules and real API signatures for AI assistants building Basehim apps and themes. Paste it into your AI before you ask for code, or point the AI at this page, so it follows Basehim's conventions instead of guessing.

Asif Mughal

Data tables

Basehim's shared admin list tables: how an app adds a column to Posts, Pages, Comments or Apps without replacing the screen, the two-phase prepare/render contract that keeps tables fast, declared row and bulk actions, user preferences, security and reusable cell components.

Asif Mughal

Media and uploads for apps

How an app takes files through the AJAX gateway, keeps private files, adds to and changes the media library, and extends every upload with hooks, filters and browser events, all without touching core. New in Basehim 1.2.87.

Asif Mughal

App development best practices

The complete best-practice guide for building Basehim apps: structure, manifest, boot(), lifecycle and migrations, permissions, data, security, admin UI, AJAX, public routes, uploads and media, scheduled work, widgets, tables, hooks, MCP tools, performance, testing, packaging and a pre-release checklist.

Asif Mughal

Dashboard widgets

Add cards to the admin dashboard from your app: stats, lists, tables, charts, feeds and status checks drawn by core from the data you return, with settings, actions, caching, per-user layouts and permission checks on the server.

Asif Mughal