File "class-acf-field-separator.php"

Full path: /home/kosmetik/public_html/wp-content/plugins/advanced-custom-fields/includes/fields/class-acf-field-separator.php
File size: 591 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor   Back

<?php

if (!class_exists('acf_field_separator')) {
    class acf_field_separator extends acf_field
    {
        function initialize()
        {
            $this->name = 'separator';
            $this->label = __('Separator', 'acf');
            $this->category = 'layout';
        }
        function render_field($field)
        {
        }
        function load_field($field)
        {
            $field['name'] = '';
            $field['required'] = 0;
            $field['value'] = false;
            return $field;
        }
    }
    acf_register_field_type('acf_field_separator');
}