24 | | For testing I edited the code of class-wp-rest-server.php to: |
25 | | |
26 | | foreach ( $callback['args'] as $key => $opts ) { |
27 | | if ( ! is_array( $opts ) ) { |
28 | | |
29 | | print_r( $callback['args'] ); |
30 | | echo "\n"; |
31 | | print_r( $opts ); |
32 | | echo "\n\n"; |
33 | | } |
34 | | $arg_data = @array_intersect_key( $opts, $allowed_schema_keywords ); |
35 | | $arg_data['required'] = ! empty( $opts['required'] ); |
36 | | |
37 | | $endpoint_data['args'][ $key ] = $arg_data; |
38 | | } |
39 | | |
40 | | |
41 | | Giving me debug information which lead me to redux-framework/redux-templates/classes.class-api.php and the class method register_api_hooks in line 785 of that file where all of these are registered. |
| 24 | My research me to redux-framework/redux-templates/classes.class-api.php and the class method register_api_hooks in line 785. |