[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/build/routes/pattern/ -> route.js (source)

   1  // routes/pattern/route.ts
   2  import { redirect } from "@wordpress/route";
   3  var route = {
   4    beforeLoad: () => {
   5      throw redirect({
   6        throw: true,
   7        to: "/patterns/list/$type",
   8        params: {
   9          type: "all"
  10        }
  11      });
  12    }
  13  };
  14  export {
  15    route
  16  };


Generated : Tue Apr 21 08:20:12 2026 Cross-referenced by PHPXref