PHP code example of wpify / custom-fields

1. Go to this page and download the library: Download wpify/custom-fields 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/ */

    

wpify / custom-fields example snippets


// Create a custom metabox for posts
wpify_custom_fields()->create_metabox(
	array(
		'id'        => 'demo_metabox',
		'title'     => __( 'Demo Metabox', 'textdomain' ),
		'post_type' => 'post',
		'items'     => array(
			'text_field' => array(
				'type'        => 'text',
				'label'       => __( 'Text Field', 'textdomain' ),
				'description' => __( 'This is a simple text field', 'textdomain' ),
				'