Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #51986, comment 2


Ignore:
Timestamp:
12/09/2020 02:46:30 PM (4 years ago)
Author:
apermo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51986, comment 2

    initial v1  
    2222
    2323
    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.
     24My research me to redux-framework/redux-templates/classes.class-api.php and the class method register_api_hooks in line 785.