simple_fields_register_post_connector

Registers a post connector.

<?php

/**
 * function simple_fields_register_post_connector($unique_name = "", $new_post_connector = array())
 */
simple_fields_register_post_connector( 'test_connector',
	array (
		'name' => "Attachments connector",
		// The field groups that should be available for this connector
		'field_groups' => array(
			array(
				'slug' => 'test',
				// optional context
				'context' => 'normal',
				// optonal priority
				'priority' => 'high'
			)
		),
		// what post types the connector is available for
		'post_types' => array( 'post' )
		"hide_editor" => false,
		// "deleted" => false // if you accidently deleted a connector you may have to set this to false to show it again
	)
);

Leave a Reply