ptions and can simply be returned. return $object; } $objects[ $id ] = $object; } return $objects; } /** * Retrieve a constant by its name. * * @access public * * @param string $object_type Type of the sync object. * @param string $id ID of the sync object. * @return mixed Value of Constant. */ public function get_object_by_id( $object_type, $id ) { if ( 'constant' === $object_type ) { // Only whitelisted constants can be returned. if ( in_array( $id, $this->get_constants_whitelist(), true ) ) { return $this->get_constant( $id ); } elseif ( 'all' === $id ) { return $this->get_all_constants(); } } return false; } }