-
Notifications
You must be signed in to change notification settings - Fork 12
micropub_suggest_title
github-actions[bot] edited this page Jan 10, 2026
·
2 revisions
Filters the suggested title for a Micropub post.
/**
* Filters the suggested title for a Micropub post.
*
* @param string $title
* @param array $properties
* @return string The filtered value.
*/
function my_micropub_suggest_title_callback( string $title, array $properties ) {
// Your code here.
return $title;
}
add_filter( 'micropub_suggest_title', 'my_micropub_suggest_title_callback', 10, 2 );-
string$titleThe suggested title. -
array$propertiesThe MF2 properties.
\apply_filters( 'micropub_suggest_title', '', $props )