DOCUMENTATION

Documentation for the way you actually build.

Start with installation and FileMaker connection setup, then move through shortcodes, parameters, scripts, containers, helpers, troubleshooting, and hosted WP-CLI operations.

Universal Error Logging Helper

cwpLog($error_issue, $error, $snippet_name = '', $snippet_id = 0, $error_line = 0)

Log errors, warnings, or information to the CWP error log table or the WordPress error log.

  • Purpose:

    • Simple, unified logging for all plugin errors and warnings.
    • When custom logging is enabled, entries are stored in the CWP database table; otherwise they are sent to the PHP error log.
  • Parameters:

    • $error_issue (string): Short category/slug for the error (required)
    • $error (string): Main error message/details (required)
    • $snippet_name (string): Name of the snippet (optional)
    • $snippet_id (int): ID of the snippet (optional)
    • $error_line (int): Line number (optional)
  • Returns:

    • true if logged successfully, false otherwise
  • Example:

    cwpLog('api_error', 'Failed to connect to FileMaker API');
    cwpLog('validation', 'Missing required field', 'My Snippet', 123, 45);
  • Notes:

    • If custom logging is enabled, logs to the DB table.
    • Otherwise, logs to the PHP error log.
PROVIDED BY RGC DATA

Free tools, backed by real integration experience.

CWP Snippets, restCWP, and ODataCWP are provided free by RGC Data to help developers build better FileMaker-connected websites.

They are shaped by the same practical experience we bring to custom FileMaker, WordPress, PHP, Data API, and OData projects.

FILEMAKER • WORDPRESS • PHP • APIs
NEED A CUSTOM SOLUTION?

Bring us your integration project.

Whether you need a complete FileMaker-to-web application or help with one difficult part, RGC Data can help you plan, build, troubleshoot, and deploy it.

Architecture, custom development, API integration, security, deployment, and ongoing support—all shaped around your solution.

Tell us what you are building and where you would like help.