feat: {{link:ID}} placeholder via Divi's post_link_url dynamic content
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace LIT\MCP\Integrations\Divi\Compose;
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Entries {{link:<ID>}} may point to (E13a). Pure interface – WpLinkTargets asks WordPress.
|
||||
*/
|
||||
interface LinkTargets
|
||||
{
|
||||
/** Post type of entry $id when it may be linked (exists, not trashed, readable); null otherwise. */
|
||||
public function postTypeOf(int $id): ?string;
|
||||
}
|
||||
Reference in New Issue
Block a user