<?php /* Plugin Name: oik fields Plugin URI: https://www.oik-plugins.com/oik-plugins/oik-fields Description: Field formatting for custom post type meta data, plus [bw_field] & [bw_fields], [bw_new] and [bw_related] shortcodes, and 'virtual' fields Depends: oik base plugin Version: 1.54.0 Author: bobbingwide Author URI: https://bobbingwide.com/about-bobbing-wide Text Domain: oik-fields Domain Path: /languages/ License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Copyright 2011-2023 Bobbing Wide (email : herb@bobbingwide.com ) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation. You may NOT assume that you can use any other version of the GPL. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The license for this software can likely be found here: http://www.gnu.org/licenses/gpl-2.0.html */ /* function oik_fields_init() – Implement "oik_loaded" action for oik-fields */ /* function oik_fields_check_oik_version() – Checks the required version of oik */ /* function oik_fields_no_texturize_shortcodes() – Implement "no_texturize_shortcodes" for oik-fields */ /* function oik_fields_shortcode_atts() – Implement "oik_shortcode_atts" for oik-fields */ /* function oik_fields_shortcode_atts_between() – Implement "oik_shortcode_atts" for meta_compare=between */ /* function bw_get_field_data_arg() – Return the value from a fields #args array, setting the default if not defined */ /* function bw_get_field_names() – Return the array of field names for the selected post */ /* function oik_fields_pre_theme_field() – Implement "oik_pre_theme_field" for oik-fields */ /* function oik_fields_pre_form_field() – Implement "oik_pre_form_field" for oik_fields */ /* function oik_fields_validate_functions() – Implement "bw_validate_functions" filter for oik-fields */ if ( !(function_exists( "bw_header_image" ))) { /* function bw_header_image() – Template tag to return the header image for a specific page */ } /* function bw_meta() – Simple wrapper to the_meta() for displaying the meta data The best way of displaying this would be to put it into a text widget then it would work regardless of the content being displayed */ /* function oik_fields_admin_menu() – Implement "oik_admin_menu" for oik-fields */ /* function oik_fields_activation() – Dependency checking for oik-fields. */ /* function oik_fields_field_functions() – Implement "bw_field_functions" filter */ /* function bw_field_function_fields() – Format the fields (format="_") */ /* function oik_fields_bw_metadata() – Implement "bw_metadata" action for bw_fields. */ /* function oik_fields_oik_fields_loaded() – Implement "oik_fields_loaded" action for oik-fields */ /* function oik_fields_query_field_types() – Implement "oik_query_field_types" to return the field types supported by oik-fields */ /* function oik_fields_default_meta_value_meta_key() – Return the meta_value to use – either the value of the current post or the value of a post meta field of type noderef */ /* function oik_fields_default_meta_value_noderef() – Implement "oik_default_meta_value_noderef" filter for noderef fields */ /* function oik_fields_plugin_loaded() – Function to initialise oik-fields when first loaded */ /** * Function to invoke when plugin file loaded */ oik_fields_plugin_loaded();View on GitHub