# Add Address and Contact Point to All in One SEO's Organization

> Extends the Organization graph in All in One SEO's JSON-LD with a postal address and a customer service contact point.

- Type: PHP
- Runs: Frontend only
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: aioseo, schema, organization
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/aioseo-schema-organization-contact/

## Code

```php
// Your details.
$wpide_aioseo_org = array(
    'street'  => '123 Main Street',
    'city'    => 'Springfield',
    'region'  => 'IL',
    'zip'     => '62701',
    'country' => 'US',
    'support' => '+1-555-010-0101',
);

add_filter( 'aioseo_schema_output', function ( $graphs ) use ( $wpide_aioseo_org ) {
    if ( ! is_array( $graphs ) ) {
        return $graphs;
    }

    foreach ( $graphs as $i => $graph ) {
        if ( ! isset( $graph['@type'] ) || 'Organization' !== $graph['@type'] ) {
            continue;
        }

        if ( $wpide_aioseo_org['street'] ) {
            $graphs[ $i ]['address'] = array(
                '@type'           => 'PostalAddress',
                'streetAddress'   => $wpide_aioseo_org['street'],
                'addressLocality' => $wpide_aioseo_org['city'],
                'addressRegion'   => $wpide_aioseo_org['region'],
                'postalCode'      => $wpide_aioseo_org['zip'],
                'addressCountry'  => $wpide_aioseo_org['country'],
            );
        }

        if ( $wpide_aioseo_org['support'] ) {
            $graphs[ $i ]['contactPoint'] = array(
                '@type'       => 'ContactPoint',
                'telephone'   => $wpide_aioseo_org['support'],
                'contactType' => 'customer service',
            );
        }
    }

    return $graphs;
} );
```

## Notes

Fill in your details; empty values are skipped.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Add Address and Contact Point to All in One SEO's Organization" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
