MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //home/cafsindia/public_html/wp-content/plugins/imageseo/src/Services/Pinterest.php
<?php

namespace ImageSeoWP\Services;

if (! defined('ABSPATH')) {
    exit;
}


class Pinterest
{
    /**
     * @var array
     */
    protected $metas = [
        'data-pin-description' => '_imageseo_data_pin_description',
        'data-pin-url' => '_imageseo_data_pin_url',
        'data-pin-id' => '_imageseo_data_pin_id',
        'data-pin-media' => '_imageseo_data_pin_media',
    ];

    /**
     * Get options default
     * @return array
     */
    public function getDataPinterestByAttachmentId($attachmentId)
    {
        $data = [];
        foreach ($this->metas as $key => $meta) {
            $data[$key] = get_post_meta($attachmentId, $meta, true);
        }
        return $data;
    }
}