Need help with this?
Purchase All in One SEO Pack Pro to get dedicated support from us.

Buy Now

The All in One SEO Pack aiosp_opengraph_disable_meta_tag_truncation hook.


if ( true === apply_filters( ‘aiosp_opengraph_disable_meta_tag_truncation’, false, $network, $meta_tag, $network_meta_tag ) ) {
return $value;
This hook can be used to disable truncation for autogenerated Open Graph meta tags, for example: og:description or twitter:description which are truncated to 200 characters.

Parameters (4)

set this to return true to disable truncation of Open Graph meta tags.
1.$network (string)
the name of the social network.
2.$meta_tag (string)
the meta tag without the network name prefixed.
3.$network_meta_tag (string)
the meta tag with the network name prefixed.



You can use this filter hook as in the following example:
add_filter( 'aiosp_opengraph_disable_meta_tag_truncation', 'aiosp_opengraph_disable_meta_tag_truncation', 10, 4 );

function aiosp_opengraph_disable_meta_tag_truncation( $disable, $network, $meta_tag, $network_meta_tag ) {
	switch ( $network_meta_tag ) {
		case 'og:description':
			$disable = true;
	return $disable;

Defined (1)

The filter is defined in the following location(s).


This hook was added in version 3.0 of All in One SEO Pack.

For instructions on how to use this code, please refer to our FAQ here.

  • Was this helpful ?
  • YesNo