🔌 CRM Shortcodes & Master API Explorer
Overview of all shortcodes available on this branch site and direct live testing for Master Site API endpoints.
📄 Available Shortcodes Reference
| Shortcode | Category | Description | Example Usage |
|---|---|---|---|
[crm_auth_form] |
CRM Auth | Renders complete tabbed interface with Login and Sign Up forms. Syncs credentials with Master database. | [crm_auth_form] |
[crm_login_form] |
CRM Auth | Renders standalone Login form for existing user authentication. | [crm_login_form] |
[crm_signup_form] |
CRM Auth | Renders standalone Sign Up form with custom signup fields. | [crm_signup_form] |
[crm_logout] |
CRM Auth | Renders logout link / action button for logged-in users. | [crm_logout redirect="/"] |
[crm_user_info] |
CRM Profile | Renders user profile details and editable metadata form for authenticated user. | [crm_user_info] |
[crm_login_button] |
CRM Auth | Renders dynamic Login/Logout button reflecting current session state. | [crm_login_button] |
[rp_pdf_viewer] |
Media Viewer | Embeds interactive PDF viewer with page tracking and download gate. | [rp_pdf_viewer file_url="..."] |
[rp_video_viewer] |
Media Viewer | Embeds video player with watch duration analytics and engagement tracking. | [rp_video_viewer video_url="..."] |
[rp_image_viewer] |
Media Viewer | Embeds responsive image viewer component with zoom modal. | [rp_image_viewer image_url="..."] |
[rp_thankyou_download_btn] |
Downloads | Renders secure resource download button on confirmation/thank-you pages. | [rp_thankyou_download_btn] |
[poc_home_featured] |
Landing Page | Renders featured articles grid component for homepage. | [poc_home_featured] |
[poc_home_most_recent] |
Landing Page | Renders most recent published articles list. | [poc_home_most_recent] |
[poc_home_latest_articles] |
Landing Page | Renders latest articles feed with pagination. | [poc_home_latest_articles] |
[poc_home_editors_picks] |
Landing Page | Renders curated editor's pick articles carousel. | [poc_home_editors_picks] |
[poc_home_premium_resources] |
Landing Page | Renders premium resource downloads showcase grid. | [poc_home_premium_resources] |
[poc_topics_listing] |
Navigation | Renders taxonomy topics and category listing page layout. | [poc_topics_listing] |
🌐 Resource & Content Master REST APIs
Endpoints used to fetch articles, resources, editor's picks, categories, taxonomies, and metadata from the Master Site.
| Resource API | Endpoint URL | Method | Parameters | Description | Action |
|---|---|---|---|---|---|
Featured Resources |
/wp-json/resources/v1/get-posts |
GET | featured=1, count=4, domain |
Fetches featured resources grid data for home layout. | |
Recent Resources |
/wp-json/resources/v1/get-posts |
GET | post_type=resource_page, orderby=date, count=6 |
Fetches most recent published resources list from Master. | |
Editor's Choice |
/wp-json/resources/v1/get-posts |
GET | featured=1, orderby=date, count=3 |
Fetches editor's pick curated resources carousel. | |
Resources per Category |
/wp-json/resources/v1/get-posts |
GET | category={id/slug}, topic={topic}, count=6 |
Fetches resources filtered by category or topic taxonomy. | |
Taxonomies & Categories |
/wp-json/resources/v1/get-categories |
GET | taxonomy=resource_category, count=10, domain |
Fetches taxonomy terms (categories, topics, tags) for domain. | |
Resource Metadata |
/wp-json/resources/v1/metadata/{id} |
GET | id (Post ID) |
Fetches PDF download URL, video URL, author & thumbnail meta. | |
Resource Page Details |
/wp-json/resources/v1/get/{slug} |
GET | slug (Resource Slug) |
Fetches single resource post content HTML and layout structure. | |
Allowed Domains Check |
/wp-json/resources/v1/allowed-domains/{domain} |
GET | domain (Branch Domain) |
Validates branch site domain syndication rights on Master. |
🔑 CRM Authentication & User Sync AJAX APIs
| API Action | Endpoint URL | Method | Parameters | Description | Action |
|---|---|---|---|---|---|
crm_remote_login |
/wp-admin/admin-ajax.php |
POST | action, tracking_key, email, password |
Authenticates user credentials against Master database. | |
crm_sync_session |
/wp-admin/admin-ajax.php |
POST | action, tracking_key, token, email |
Synchronizes active session token with Master site. | |
crm_remote_signup |
/wp-admin/admin-ajax.php |
POST | action, tracking_key, email, password, first_name... |
Registers new user account centrally on Master site. | |
crm_remote_forgot_password |
/wp-admin/admin-ajax.php |
POST | action, tracking_key, email |
Requests password reset link / OTP from Master site. | |
crm_remote_reset_password |
/wp-admin/admin-ajax.php |
POST | action, tracking_key, email, code, new_password |
Verifies OTP code and updates password on Master site. | |
crm_remote_update_profile |
/wp-admin/admin-ajax.php |
POST | action, tracking_key, crm_id, first_name, phone... |
Updates user profile records on Master site database. | |
crm_save_user_meta |
/wp-admin/admin-ajax.php |
POST | action, tracking_key, crm_id, meta_key, meta_value |
Saves user metadata & form submissions to Master site. | |
crm_get_user_meta |
/wp-admin/admin-ajax.php |
POST | action, tracking_key, crm_id, meta_key |
Fetches stored custom metadata for user from Master site. |