PATH:
home
/
lab2454c
/
fcxpro.com
/
wp-content
/
plugins
/
qode-framework
/
inc
/
common
/
modules
/
attachment
/
core
<?php class QodeFrameworkOptionsAttachment extends QodeFrameworkOptions { public function __construct() { parent::__construct(); add_action( 'init', array( $this, 'init_media_fields' ) ); add_action( 'attachment_fields_to_edit', array( $this, 'add_media_custom_fields' ), 10, 2 ); add_filter( 'attachment_fields_to_save', array( $this, 'save_media_custom_fields' ), 10, 2 ); } function init_media_fields() { do_action( 'qode_framework_action_custom_media_fields' ); } function add_media_custom_fields( $form_fields, $post = null ) { foreach ( $this->get_child_elements() as $key => $child ) { $form_fields = array_merge( $form_fields, $child->display_field_element( $post ) ); } return $form_fields; } function save_media_custom_fields( $post, $attachment ) { foreach ( $this->get_child_elements() as $child ) { $child->save_field_element( $post, $attachment ); } return $post; } }
[+]
..
[-] class-qodeframeworkpageattachment.php
[edit]
[-] class-qodeframeworkoptionsattachment.php
[edit]