Lines:
1 to 89 of 89
<?php // (C) Copyright Bobbing Wide 2012-2017 /** * Logic to create metaboxes for each of the custom fields defined for a particular post type * * Note: These functions are prefixed bw_effort for historical reasons * */ /* function bw_metadata_loaded() – Function to invoke when includes/bw_metadata.php is loaded */ /* function bw_effort_meta_boxes() – Create "Fields" meta box for each field associated with each object type in the mapping */ /* function bw_default_value() – Return a default value from $args if $value is not set */ /* function bw_form_field_() – bw_form_field_ – default formatting for a field – as a textfield */ /* function bw_form_field_email() – bw_form_field_email – formatting for an email entry field */ /* function bw_form_field_select() – bw_form_field_select – formatting for a field as a select list */ /* function bw_post_array() – Build a simple ID, title array from an array of $post objects */ /* function bw_term_array() – Build a simple ID, title array from an array of $term objects */ /* function bw_load_noderef() – Load an array of node references */ /* function bw_get_noderef_id() – Return a noderef ID from a post */ /* function bw_form_field_noderef() – Form a ‘noderef’ field type */ if ( !function_exists( "bw_datepicker_enqueue_script" ) ) { /* function bw_datepicker_enqueue_script() – Enqueue the datepicker script */ } if ( !function_exists( "bw_form_field_date" ) ) { /* function bw_form_field_date() – bw_form_field_date – format a date field */ } /* function bw_form_field_numeric() – Format a numeric field metabox */ /* * Format a checkbox metabox */ /* function bw_form_field_checkbox() – */ /* function bw_form_field_textarea() – Format a textarea metabox */ /* function bw_pre_form_field() – Request plugins to load their field forming functions */ /* function bw_form_function() – Return the function name to be used to ‘form’ the field */ /* function _bw_form_field_title() – Append any ‘hint’ to the field_title */ /* function bw_l10n_field_title() – Customizes the field title */ /* function bw_form_field() – Display a field in a form for the user to enter/choose a value */ /* function bw_check_metabox_field() – Check if the field should be displayed in the metabox */ /* function bw_effort_box() – Create fields in the meta box to accept data for the fields */ if ( !function_exists( "bw_authorized" ) ) { /* function bw_authorized() – Perform simple authorization */ } /* function bw_effort_save_postdata() – Saves the custom fields for this post when called for the ‘save_post’ action */ /* function bw_update_post_meta() – Update post_meta for fields with multiple values */ /* function bw_effort_update_field() – Update the value/values for a field */ /* [_oik_api_calls] => Array ( [#field_type] => noderef [#title] => Uses APIs [#args] => Array ( [#type] => oik_api [#multiple] => 1 ) ) */ bw_metadata_loaded();View on GitHub View on Trac