# Add a Customer Service Contact to Rank Math's Organization

> Adds a ContactPoint with phone, email and languages to the Organization entity Rank Math outputs on your site.

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

## Code

```php
// Contact details.
$wpide_rm_contact = array(
    'telephone'         => '+1-555-010-0101',
    'email'             => 'support@example.com',
    'contactType'       => 'customer service',
    'availableLanguage' => array( 'English', 'Spanish' ),
);

add_filter( 'rank_math/json_ld', function ( $data ) use ( $wpide_rm_contact ) {
    if ( ! is_array( $data ) ) {
        return $data;
    }

    foreach ( $data as $key => $entity ) {
        $types = isset( $entity['@type'] ) ? (array) $entity['@type'] : array();

        if ( in_array( 'Organization', $types, true ) ) {
            $data[ $key ]['contactPoint'] = array_merge( array( '@type' => 'ContactPoint' ), array_filter( $wpide_rm_contact ) );
        }
    }

    return $data;
}, 99 );
```

## Notes

Only applies when Rank Math describes the site as an organization, not a person.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Add a Customer Service Contact to Rank Math'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/
