replace array(), to current logged user

please advise, i need to replace
‘default’ => array(), in to a current logged user in WordPress

in custom post now, must select the user Manually

<?php

return array(
    'author' => array(
        'label'        => __('Author', 'ait-toolkit'),
        'type'         => 'select-dynamic',
        'dataFunction' => 'AitItemCpt::fillAuthorMetabox',
        'default'      => 'login',
        'capabilities' => true,
    ),
);

Read more here: replace array(), to current logged user

Leave a Reply

Your email address will not be published. Required fields are marked *