You appear to be a bot. Output may be restricted
Description
Register the fields for oik_pluginversion
- The title should contain the plugin name and version.
- The description is the content field.
- The upgrade notice is part of the description.
- We don't display the _component_version virtual field since this might confuse the user seeing two versions.
- Requires and tested are custom taxonomies.
- Download count and Update count are not displayed on the front end.
Usage
oik_register_oik_pluginversion_fields( $post_type );
Parameters
- $post_type
- ( mixed ) required –
Returns
void
Source
File name: oik-plugins/oik-plugins.php
Lines:
1 to 11 of 11
function oik_register_oik_pluginversion_fields( $post_type ) { bw_register_field( "_oikpv_plugin", "noderef", "Plugin", array( '#type' => 'oik-plugins') ); bw_register_field( "_oikpv_version", "text", "Version", array( '#hint' => " (omit the v)" ) ); bw_register_field( "_oikpv_download_count", "numeric", "Download count", array( '#theme' => false ) ); bw_register_field( "_oikpv_update_count", "numeric", "Update count", array( '#theme' => false ) ); bw_register_field_for_object_type( "_oikpv_version", $post_type ); bw_register_field_for_object_type( "_oikpv_plugin", $post_type ); bw_register_field_for_object_type( "_oikpv_download_count", $post_type ); bw_register_field_for_object_type( "_oikpv_update_count", $post_type ); oikp_columns_and_titles( $post_type ); }