Skip to main content

Hooks

Faust.js provides a number of hooks that make interacting with your headless WordPress site a little easier.

  • usePost: Fetch a post from WordPress
  • usePosts: Fetch multiple posts from WordPress
  • usePage: Fetch a page from WordPress
  • usePreview: Fetch preview data from WordPress
  • useAuth: Facilitate authentication with WordPress
  • useLogin: Facilitate login with WordPress
  • useLogout: Facilitate logout with WordPress