You appear to be a bot. Output may be restricted
Description
"oik_contact" custom post typeFields stored:
- email, name – pretty obvious
- confirm – confirmation key – 26 digit hex key used for double opt-in validation
- status – indicates their status @see oiksp_statuses()
- opted_in – the noderef of the "opted-in" page
- opted_from – the noderef of the page from which they opted in
Usage
oiksp_register_contacts();
Parameters
Returns
voidSource
File name: oik-squeeze/oik-squeeze.phpLines:
1 to 23 of 23
function oiksp_register_contacts() { $post_type = 'oik_contact'; $post_type_args = array(); $post_type_args['label'] = 'Contacts'; $post_type_args['description'] = 'Contacts - subscribers, prospects '; /* This post type uses the "title" custom field which is a combination of "email - name" * */ $post_type_args['supports'] = array( 'title' ); bw_register_post_type( $post_type, $post_type_args ); bw_register_field( "_oiksp_email", "email", "email address" ); bw_register_field( "_oiksp_name", "text", "Name (free format)" ); bw_register_field( "_oiksp_confirm", "text", "Confirmation key", array( "#length" => 26 ) ); bw_register_field( "_oiksp_status", "select", "Contact status", array( "#options" => oiksp_statuses() ) ); bw_register_field( "_oiksp_opted_in", "noderef", "Opted-in at", array( "#type" => "opted_in" ) ); bw_register_field( "_oiksp_opted_from", "noderef", "Opted-in from", array( "#type" => array( "page", "post", "opted_in" ) ) ); bw_register_field_for_object_type( "_oiksp_email", $post_type ); bw_register_field_for_object_type( "_oiksp_name", $post_type ); bw_register_field_for_object_type( "_oiksp_confirm", $post_type ); bw_register_field_for_object_type( "_oiksp_status", $post_type ); bw_register_field_for_object_type( "_oiksp_opted_in", $post_type ); bw_register_field_for_object_type( "_oiksp_opted_from", $post_type ); }