[oik] plugins.com

WordPress plugins and themes

  • Home
  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

oiksp_register_contacts() – "oik_contact" custom post type

You appear to be a bot. Output may be restricted

Description

"oik_contact" custom post type

Fields 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

void

Source

File name: oik-squeeze/oik-squeeze.php
Lines:
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 );
}
 

Published: March 31, 2017 | Last updated: March 31, 2017

Information

Function name: oiksp_register_contacts
Plugin ref: oik-squeeze
Version: 1.2.0
Sourcefile: oik-squeeze.php
File ref: oik-squeeze.php
Deprecated?: No
API Letters: C,O,R

Recent plugin updates

oik v4.7.2 oik v4.7.2 includes a fix to the logic to render blocks for Content and Excerpts in the bw_pages shortcode. ...
oik v4.7.1 Upgrade to oik v4.7.1 for bw_pages rendering blocks for Content and Excerpts, and support for post_name attribute for shortcode which query posts ...
oik-shortcodes v1.41.1 Upgrade to oik-shortcodes v1.41.1 for a couple of minor changes. ...
oik-bob-bing-wide v2.2.2 Upgrade to oik-bob-bing-wide v2.2.2 for improvements to bw_dash examples and fixes to some SVG icon's visibility. ...
oik-bwtrace v3.3.1 Upgrade to oik-bwtrace v3.3.1 to measure plugin load times and ad hoc action timing points. ...

Plugins

  • All Plugins
  • oik base plugin
  • FREE oik plugins
  • WordPress plugins
  • Premium oik plugins

Themes

  • FREE themes
  • Bespoke themes
  • Premium themes

Blocks

  • All Blocks
  • Block examples
  • About Blocks

Shortcodes

  • All Shortcodes
  • Shortcode examples
  • About Shortcodes

Reference

  • About APIs
  • All APIs
  • All Classes
  • All Files
  • All Hooks

Support

  • Contact
  • Cookies policy
  • Get API key
  • Privacy
  • Request support
  • Sitemap
  • Stay informed
  • Terms and Conditions
oik-plugins
Email: [email protected]

Weight shipping plugins

Find out which cart weight shipping plugin you need for your WooCommerce site.
Which cart weight based plugin do I need?

Site:  www.oik-plugins.com
© Copyright oik-plugins 2011-2022. All rights reserved.


Website designed and developed by Herb Miller of Bobbing Wide
Proudly powered by WordPress and oik-plugins