Menu
My Site LogoAgiledropSnippetsGuides
ContributeGithub
My Site LogoAgiledrop
  • Snippets
  • Guides
  • Contribute
  • Github
  • devops
    • Docker
  • drupal
    • Composer
    • Database
    • Debugging
    • Dependency Injection
    • Entities
    • Images
    • Libraries
    • Migrations
    • Miscellaneous
    • Modules
    • Multilingual
    • Rendering
    • Search
    • URLs, links and routing
    • Users
  • drupal-onboarding
    • Site Building (Level 1)
    • Backend (Level 1)
    • Site Building (Level 2)
    • Backend (Level 2)
    • Backend (Level 3)
  • wordpress
    • Actions
    • Enqueues
    • Input validation
    • Internationalization
    • Post meta
    • Posts
    • Rest Api
    • Taxonomy
    • Widgets

Rest Api

Register REST API route

Register REST API route#

register_rest_route( 'agiledrop/v1', '/custom-post-types/', array(
'methods' => 'GET',
'callback' => function() { return 'something' }
) );
Edit this page
Previous
« Posts
Next
Taxonomy »
  • Register REST API route