bobbingwide / oik-media

oik-fields extension for Media - attached images and other files
GNU General Public License v2.0
0 stars 0 forks source link

oik-media

banner

Description

Implements media related field types for oik-fields.

Field types supported

Shortcodes

Media fields are displayable using [bw_field], [bw_fields], [bw_new] and other shortcodes that support field display.

Action and filter hooks

Follow this code...

add_action( "oik_pre_theme_field", "oik_media_pre_theme_field" ); add_action( "oik_pre_form_field", "oik_media_pre_form_field" ); add_filter( "bw_field_validation_date", "oik_media_field_validation_date", 10, 3 ); add_filter( "oik_query_field_types", "oik_media_query_field_types" ); add_filter( "oik_default_meta_value_date", "oik_media_default_meta_value_date", 10, 2 ); add_action( "oik_loaded", "oik_media_oik_loaded" );

Installation

  1. Upload the contents of the oik-media plugin to the `/wp-content/plugins/oik-media' directory
  2. Activate the oik-media plugin through the 'Plugins' menu in WordPress

Frequently Asked Questions

What are the dependencies?

oik-media is an extension to the oik-fields plugin. It is dependent upon oik-fields and oik. You can use it with oik-types.

When would I need to use oik-media?

When you want to add an attachment of a particular type to a custom post type ( CPT ) and rather not do it just by using Add Media.

What other plugins support media?

Here are some that provide a field type with a programming interface

Here are some that use attachments in their user interface:

These plugins are directly aimed at supporting media upload:

What does it need to make it work?

Screenshots

  1. oik-media in action

Upgrade Notice

0.1.1

Update for support for PHP 8.1 and PHP 8.2

0.1.0

Update to avoid the Warning message from exit_read_data()

0.0.1

Required for bigram.co.uk

0.0.0

New plugin, available from GitHub.

Changelog

0.1.1

0.1.0

0.0.1

0.0.0

Further reading

If you want to read more about the oik plugins then please visit the oik plugin "the oik plugin - for often included key-information"