10000 Merge pull request #2810 from websupporter/change-priority-for-create… · WP-API/WP-API@96ae9b7 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Commit 96ae9b7

Browse files
authored
Merge pull request #2810 from websupporter/change-priority-for-create_initial_rest_routes
Change priority for create_initial_rest_routes
2 parents 453b463 + 92b33c9 commit 96ae9b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@
129129

130130
add_filter( 'init', '_add_extra_api_post_type_arguments', 11 );
131131
add_action( 'init', '_add_extra_api_taxonomy_arguments', 11 );
132-
add_action( 'rest_api_init', 'rest_register_settings', 0 );
133-
add_action( 'rest_api_init', 'create_initial_rest_routes', 0 );
132+
add_action( 'rest_api_init', 'rest_register_settings', 10 );
133+
add_action( 'rest_api_init', 'create_initial_rest_routes', 99 );
134134

135135
/**
136136
* Adds extra post type registration arguments.

0 commit comments

Comments
 (0)
0