PHP code example of kaiseki / wp-plugin-ninja-forms

1. Go to this page and download the library: Download kaiseki/wp-plugin-ninja-forms 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/ */

    

kaiseki / wp-plugin-ninja-forms example snippets


use Kaiseki\WordPress\NinjaForms\AddTemplatePaths;
use Kaiseki\WordPress\NinjaForms\RemoveAppendFormMetabox;

return [
    'ninja_forms' => [
        // Extra directories searched for field templates.
        'template_paths' => [
            get_stylesheet_directory() . '/ninja-forms/templates',
        ],
        // false to keep the metabox, true to remove it everywhere,
        // or a list of post types to remove it from.
        'remove_append_form_metabox' => ['page'],
    ],
    'hook' => [
        'provider' => [
            AddTemplatePaths::class,
            RemoveAppendFormMetabox::class,
        ],
    ],
];