API Reference

The Secure Custom Fields API provides programmatic access to field data and plugin functionality.

Core Functions

Field Operations

  • Get field values
  • Update field data
  • Delete field content
  • Check field existence

Post Type Management

  • Register post types
  • Modify post type settings
  • Handle custom capabilities
  • Manage taxonomies

Integration Points

  1. WordPress Core
    • Post type registration
    • Taxonomy integration
    • Capability handling
  2. Theme Integration
    • Template functions
    • Conditional tags
    • Layout helpers
  3. Plugin Compatibility
    • REST API support
    • Cache integration
    • Query modifications

Best Practices

  1. Always sanitize input
  2. Validate data types
  3. Use proper escaping
  4. Check capabilities
  5. Follow WordPress coding standards