English (United Kingdom)
Knowledge Base  >  Vik Appointments  >  Hooks  >  Conversions  >  Load Supported Pages

apply_filters( 'vikappointments_load_supported_conversion_pages', array $pages )

Fires while fetching the pages that support the conversion codes.


Description

Loads a list of supported pages that can be used while creating/editing a conversion code.

The name of the page must be equals to the view name in the front-end. In example, the page displaying the list of employees is called "employeeslist".

By default the system supports the following pages:

  • confirmapp - the page used to fill the custom fields;
  • order - the landing page after a successful purchase.

Parameters

$pages

(array)  An array of pages. At the first execution of the filter, the return value might be null.


Example

/**
 * Loads a list of supported pages that can be used while creating/editing a conversion code.
 * The name of the page must be equals to the view name in the front-end. In example, the page
 *
 * @param  array  $pages  An array of supported pages.
 */
add_filter('vikappointments_load_supported_conversion_pages', function($pages)
{
    if (!is_array($pages))
    {
        $pages = array();
    }

    // add support for the employee details page
    $pages[] = 'employeesearch';
    // add support for the service details page
    $pages[] = 'servicesearch';

    return $pages;
});

Changelog

Version Description
1.2 Introduced.
Last Update: 2021-10-04
Helpful?

This website uses cookies

This website uses cookies and similar technologies. Some of these technologies are necessary for the proper functioning of the website (Essential). Other technologies are used to evaluate user behavior (Analysis), to integrate external media or for advertising purposes. If you agree, these technologies are activated. For details, please refer to the privacy policy. From this same page you can also update/revoke your consent. If you do not give your consent, only cookies with essential functions will be activated.

We use technologies from the USA on our website. If you give your consent, you therefore consent at the same time to your data being transferred to the USA. We would like to point out that the USA does not have a level of data protection comparable to that of the EU and that any US company can be obliged by state authorities to hand over your data without you having any effective legal protection against this.