PHP code example of pessek / hypepostadmin

1. Go to this page and download the library: Download pessek/hypepostadmin library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

pessek / hypepostadmin example snippets


 elgg_register_plugin_hook_handler('field_types', 'post', function(Hook $hook) {
    $fields = $hook->getValue();
    
    $fields[] = [
        'type' => 'postal_code', // corresponds to input/postal_code view
        'config' => [],
        'adapter' => function($params, $entity) {
            return new MetaField($params);
        },
    ];
    
    return $fields;
 });