| 开发者 | astrowayteam |
|---|---|
| 更新时间 | 2026年6月22日 23:20 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | MIT |
| 版权网址: | 版权信息 |
/wp-content/plugins/.[astroway_natal date="1990-05-15" time="14:30" lat="50.45" lon="30.52"].Drop a shortcode into any page or post — for example [astroway_natal date="1990-05-15" time="14:30" lat="50.45" lon="30.52"] for a natal (birth) chart, or [astroway_daily_horoscope sign="leo"] for a daily horoscope. Every widget is also a Gutenberg block: Natal Chart, Daily Horoscope, Moon Phase, Human Design Bodygraph, and Daily Tarot.
No. The plugin works without a key in anonymous mode (30 requests/hour per visitor IP). For higher limits and Pro features, get a free key at api.astroway.info.
Birth data (date, time, city, coordinates) for chart calculation. No data is stored on your site beyond standard WP caching.
Yes for the free anonymous tier. Paid API keys are bound to a single domain by default; you can change the bound domain self-service from the API dashboard at api.astroway.info/dashboard.
No personal data is stored on api.astroway.info. Birth data (date, time, city, lat/lon) is processed in-memory for chart calculation and the result is returned. The plugin caches results locally on your WordPress site (WP transients) to reduce repeat API calls; the cache contains chart output only, no PII beyond what was submitted via shortcode arguments.
For plugin issues: file an issue at https://github.com/astroway/astroway-wp-plugin/issues. For API or billing questions: contact support via your dashboard at api.astroway.info/dashboard.
astroway_* shortcode is now wrapped with Tier::can( $feature ). Locked shortcodes render an inline "Pro feature" CTA. Behavior matches v0.7.2 block-side gating — v1 shortcodes remain anonymous-accessible.Tier::render_upgrade_cta( $feature ) returns a styled CTA panel with feature label + upgrade button linking to api.astroway.info/dashboard/upgrade. Filterable via astroway_upgrade_cta_html for theme/addon customization.Tier::can( $feature ). Locked blocks render an inline "Pro feature" CTA instead of the widget. All v1 blocks remain accessible to anonymous users (matrix default); guards activate for v1.x+ Pro blocks.Tier::can( string $feature ): bool checks whether current tier can access a feature.Tier::matrix(): array returns feature → allowed tiers map, filterable via astroway_tier_matrix so addons can declare their own features.AstroWayWPPluginTier with Tier::current() resolving the user's plan from cached /v1/auth/keys/me response (30 min TTL). Returns anonymous/free/indie/starter/pro/business/internal.docs/addon-development.md documents the v0.6.x Addon Hooks API + AddonAPI reference + minimal working example.docs/example-addon/ shows shortcode registration + tier check + widget declaration.AstroWayWPPluginAddonAPI — BC-locked stable surface for addon developers. Methods: register_widget(), current_tier(), api_base(), has_key(), cache_key(). Internal classes (RendererDecisions, ApiClient, Cache, Admin) remain unstable.astroway_widgets lets addons append entries to the widget registry without touching core. Useful for new shortcodes/blocks that map to api /v1/embed/* endpoints.astroway_register_blocks fires at end of Blocks::register_assets_and_blocks(). Addons hook here to call register_block_type() for their own astroway/* Gutenberg blocks.astroway_register_shortcodes fires at end of Shortcodes::register(). Addons hook here to call add_shortcode() for their own astroway_* shortcodes.astroway_init fires early in plugin boot, signalling addons that core classes are loaded and they can hook into upcoming registration actions.lang attribute on all 5 shortcodes (e.g. [astroway_natal date="..." lang="ru"]) — 21 api-supported localeslang= render in site default exactly as before