studiomeyerio
Forum Replies Created
-
Forum: Plugins
In reply to: [AI-Ready WP] Notice error in debug-mode when running AI-Ready WPHi Ruben,
Thanks for the report, you were right. Fixed.
Version 4.1.1 is on the way to ww.wp.xz.cn and should show up as a plugin update within the next few hours.
While I was looking at it I noticed that WordPress 6.9 actually enforces three things on the Abilities API, not just the hook. Documenting them here in case other plugin authors run into the same wall:
- Hook:
add_action( 'wp_abilities_api_init', ... )instead ofinit. That was the notice you saw. - Required
categoryproperty: without it the ability is registered but then immediately dropped with a “The ability properties must contain acategorystring” notice. AI-Ready WP now registers its own categoryairewponwp_abilities_api_categories_initand all four abilities reference it, which also groups them cleanly in the MCP Adapter and admin views. - Property rename:
'callback'is now'execute_callback'in 6.9. The old key triggers the same class of notice.
Smoke tested against WordPress 6.9.4. All four
airewp/*abilities (get-business-info,get-readiness,search-content, plus the optionalget-services) are sitting inwp_get_abilities()anddebug.logstays clean.The Pro variant had the exact same bug across the four WebMCP tools (
submit-lead,book-appointment,search-products,get-analytics-summary), 1.2.1 ships the same fix.If you spot anything else, let me know in the forum or via issue. You helped make the plugin properly 6.9 ready.
Cheers Matthias / StudioMeyer
- Hook: