a given ID. * * @since 5.6.0 * * @param int $id Item ID. * @return array[] Array of link arrays for the given item. */ public function prepare_item_links( $id ) { $term = get_term( $id ); $links = array(); $item_route = rest_get_route_for_term( $term ); if ( $item_route ) { $links['self'] = array( 'href' => rest_url( $item_route ), 'embeddable' => true, ); } $links['about'] = array( 'href' => rest_url( sprintf( 'wp/v2/taxonomies/%s', $term->taxonomy ) ), ); return $links; } }
Fatal error: Uncaught TEC\Common\Exceptions\Not_Bound_Exception: Error while making TEC\Common\Libraries\Provider: nothing is bound to the 'TEC\Common\Libraries\Provider' id and it's not an existing or instantiable class. in /htdocs/wp-content/plugins/the-events-calendar/common/src/Common/Contracts/Container.php:27 Stack trace: #0 /htdocs/wp-content/plugins/the-events-calendar/common/vendor/vendor-prefixed/lucatume/di52/src/Container.php(461): TEC\Common\Contracts\Container->get('TEC\\Common\\Libr...') #1 /htdocs/wp-content/plugins/the-events-calendar/common/src/Common/Contracts/Container.php(46): TEC\Common\lucatume\DI52\Container->register('TEC\\Common\\Libr...') #2 /htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Container.php(305): TEC\Common\Contracts\Container->register('TEC\\Common\\Libr...') #3 /htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Main.php(762): tribe_register_provider('TEC\\Common\\Libr...') #4 /htdocs/wp-content/plugins/the-events-calendar/common/src/Tribe/Main.php(119): Tribe__Main->bind_implementations() #5 /htdocs/wp-includes/class-wp-hook.php(324): Tribe__Main->plugins_loaded('') #6 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #7 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #8 /htdocs/wp-settings.php(555): do_action('plugins_loaded') #9 /htdocs/wp-config.php(92): require_once('/htdocs/wp-sett...') #10 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #11 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #12 /htdocs/index.php(17): require('/htdocs/wp-blog...') #13 {main} thrown in /htdocs/wp-content/plugins/the-events-calendar/common/src/Common/Contracts/Container.php on line 27