Notice: There is no legacy documentation available for this item, so you are seeing the current documentation.
Purpose
This filter can be used to disable the custom link format that All in One SEO adds to the Block Editor and Classic Editor.
Arguments (1)
- $disabled (boolean) – Whether the link format should be disabled.
Example code snippet
Because the link formats are enqueued before the theme’s functions.php is loaded, we recommend to register this filter through a custom plugin or the Code Snippets plugin.
add_filter( 'aioseo_disable_link_format', '__return_true' );