Uname: Linux premium264.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.3.22 [ PHP INFO ] PHP os: Linux
Server Ip: 69.57.162.13
Your Ip: 216.73.216.219
User: workvvfb (1129) | Group: workvvfb (1084)
Safe Mode: OFF
Disable Function:
NONE

name : admin-functions.php
<?php

/**
 * Gets the absolute url to edit a form
 *
 * @param int $form_id ID of the form
 * @param string $tab Tab identifier to open
 *
 * @return string
 */
function mc4wp_get_edit_form_url($form_id, $tab = '')
{
    $url = admin_url(sprintf('admin.php?page=mailchimp-for-wp-forms&view=edit-form&form_id=%d', $form_id));

    if (! empty($tab)) {
        $url .= sprintf('&tab=%s', $tab);
    }

    return $url;
}

/**
 * Get absolute URL to create a new form
 *
 * @return string
 */
function mc4wp_get_add_form_url()
{
    $url = admin_url('admin.php?page=mailchimp-for-wp-forms&view=add-form');
    return $url;
}
© 2025 GrazzMean