src/core/class-papi-core-data.php
public function get_function( $context = 'get' ) {
		switch ( $this->type ) {
			case 'option':
				return sprintf( '%s_option', $context );
			case 'site':
			case 'network':
				return sprintf( '%s_site_option', $context );
			case 'post':
			case 'term':
				return sprintf( '%s_metadata', $context );
			default:
				break;
		}
	}
public function get_function( $context = 'get' ) {
		switch ( $this->type ) {
			case 'option':
				return sprintf( '%s_option', $context );
			case 'site':
			case 'network':
				return sprintf( '%s_site_option', $context );
			case 'post':
			case 'term':
				return sprintf( '%s_metadata', $context );
			default:
				break;
		}
	}
Get right meta function for right type and context.

@param  string $context

@return string