aioseo_thumbnail_size

Purpose

This filter can be used to set the size of the image used for the og:image meta tag that All in One SEO outputs.

Arguments (1)

  1. $imageSize (string) – The size of the image All in One SEO outputs. Defaults to “fullsize”.

Example code snippet

The code snippet below is just an example of how this filter can be used. In the example below, All in One SEO is outputting an og:image that uses the large size image.

The accepted values are –

  1. fullsize
  2. large
  3. medium
  4. thumbnail
  5. an array specifying the width and height in pixels (e.g. [ 200, 300 ] )

Implementation

Need help using our code snippets? Checkout our documentation on “How do I use your API code examples?“.

We recommend using the WPCode plugin for safe and secure implementation. WPCode performs multiple sanitization tests before activating the snippets, ensuring the safety of your website.