If you manage WordPress through an automation, an AI agent, or your own integration, you can use the WordPress Abilities API to work with Ember News Ticker. This guide creates a draft announcement, previews a change, then shows how to publish it after review. The same workflow works for a small update to a ticker you already use.
On this page
- Check your WordPress setup and permissions
- Discover the ticker abilities
- Create a draft ticker for an office-hours notice
- Preview and update a saved ticker
- Publish and place the ticker
- Handle errors and retries
Check your WordPress setup and permissions
Use WordPress 6.9 or later and Ember News Ticker 1.1.0 or later. This guide reflects the 1.2.0 release, which includes Extras in its ticker configuration. On an older WordPress installation, you can still manage tickers from the WordPress dashboard.
Connect as a WordPress user who can edit the tickers you want to manage. Publishing needs publishing permissions. For a first test, use a staging site or a new draft on a site you control. Give the integration the permissions it needs for that task and keep its credentials in the client’s secret storage.
A client that understands WordPress abilities can present the actions as callable tools. If you’re building an HTTP client, use the authenticated WordPress REST API. An Application Password over HTTPS is one supported authentication option for external requests. WordPress REST API authentication.
Discover the ticker abilities
Look for the ember-news-ticker category on the site. Run ember-news-ticker/discover-schema before you write. It describes the component types, Extras, settings, and placement options the installed version accepts. If you rely on Pro, check the schema and availability on the destination site because a second site might have a different version or set of plugins.
ember-news-ticker/list-tickersfinds existing tickers by title and lets you confirm their IDs and statuses.ember-news-ticker/get-tickerreturns one ticker’s saved configuration for review.ember-news-ticker/preview-tickerrenders an HTML preview of saved or proposed settings without saving them.ember-news-ticker/create-tickercreates a new record.ember-news-ticker/update-tickerapplies a change to an existing ID.ember-news-ticker/delete-tickermoves a ticker to the WordPress Trash. To take it off the site while keeping it in the dashboard, useupdate-tickerwithenabledset tofalse.
Direct HTTP clients can call /wp-json/wp-abilities/v1/ember-news-ticker/{ability}/run. Use GET for reads such as schema discovery and preview, and pass a URL-encoded JSON input query value when the ability needs it. Use POST for creates or updates with an input object in the JSON request body. WordPress documents the authentication, method, and input rules for these routes. WordPress Abilities REST API endpoints.
Create a draft ticker for an office-hours notice
Imagine you need a ticker that tells visitors the office will open later than usual on Friday. First, list tickers to see whether one with the same purpose already exists. If you find one, read its configuration and use its ID for the edit. If there’s no existing ticker, use create-ticker with the following input.
{
"title": "Service hours announcement",
"status": "draft",
"enabled": true,
"configuration": {
"components": [
{
"id": "05363285-e34f-47ea-89f8-b93666f7cf57",
"type": "simple",
"enabled": true,
"settings": {
"text": "Our office opens at 10 a.m. on Friday."
}
}
]
}
}
Pass this object directly to an abilities client. For a direct REST POST, wrap it in an outer object with the key input. The simple component is a single text message. Save the ID returned by the create call so you can preview or update that exact draft.
The create ability defaults to a disabled draft. This example enables the draft so it can render in preview. Its draft status keeps it off the public site. Leave automatic placement off while you review the message.
Preview and update a saved ticker
Run preview-ticker with the returned ID to see what the saved ticker renders. Look for rendered and the HTML in markup. To try a new label without saving it, send the ID and the proposed configuration together. Replace 123 below with your ticker ID.
{
"id": 123,
"configuration": {
"content": {
"label": "Service update"
}
}
}
Use the same input with update-ticker to save the label if the preview looks right. Settings inside content, design, animation, and placement merge by key. A patch that sets the label can leave the animation and all other settings alone.
The components, displayConditions, and extras lists replace the saved lists when included. To change one item in a list, read the current ticker, edit the intended item, and send the complete revised list. Preserve instance IDs and order when they should stay the same. If the patch clears a list, verify that you intend to remove every item in it.
Publish and place the ticker
Review the message in the editor, then publish through the dashboard or use the update ability with status set to publish. An enabled, published ticker still needs a placement. For this office-hours example, you might embed it on the contact page first. Open the public page and confirm the message with the visitor’s view. Place a ticker with a shortcode, block, or Elementor.
If you’re updating an already placed ticker, check where it appears before saving. A change to the ticker can show anywhere that uses its ID. When the notice is over, disable the ticker and check the relevant page again.
Handle errors and retries
- The ability is missing. Check the WordPress and plugin versions, authenticate to the correct site, and try discovery again.
- The request is refused. Confirm that the authenticated user can edit the target ticker. Check publishing permissions if you’re changing its public status.
- The preview is empty. Check the enabled state, content items, and source filters. A news query with no matching posts can produce an empty preview.
- A create request timed out. List tickers before retrying. Every successful create call makes a new ticker. If the draft already exists, continue with that ID.
- A preview looks right but the public page differs. Confirm the saved settings, publication status, placement, and page cache. Troubleshoot a missing ticker.