prefix . 'sbay_' . $short_name; } /** * Returns every full table name. * * @return string[] */ public static function all() { return array_map( array( __CLASS__, 'name' ), self::names() ); } /** * Short names of the tables of SpaceBay and its add-ons. * * @return string[] */ public static function names() { /** * Filters the short table names. Add-ons add their own tables here so * Tables::name() resolves them. Add-ons create and remove their tables themselves. * * @since 1.0.0 * * @param string[] $names Short names, without prefix. */ return (array) apply_filters( 'spacebay_table_names', self::NAMES ); } }