Skip to content

Commit

Permalink
use backend contentTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsoo committed Nov 14, 2024
1 parent 4fb9746 commit 5e45c71
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions packages/js/src/general/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,7 @@ domReady( () => {
} );
const isRtl = select( STORE_NAME ).selectPreference( "isRtl", false );

const contentTypes = get( window, "wpseoScriptData.dash.contentTypes", [
{
name: "post",
label: "Posts",
taxonomy: {
name: "category",
label: "Category",
links: {
search: "https://igor.local/wp-json/wp/v2/categories",
},
},
},
{
name: "page",
label: "Pages",
taxonomy: null,
},
] );
const contentTypes = get( window, "wpseoScriptData.contentTypes", [] );
const userName = get( window, "wpseoScriptData.dash.userName", "User" );

const router = createHashRouter(
Expand Down

0 comments on commit 5e45c71

Please sign in to comment.