Submit
Path:
~
/
home
/
getwphos
/
www
/
almajd14
/
wp-content
/
plugins
/
qode-framework
/
inc
/
common
/
modules
/
attachment
/
core
/
File Content:
class-qodeframeworkoptionsattachment.php
<?php if ( ! defined( 'ABSPATH' ) ) { // Exit if accessed directly. exit; } 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 ); } public function init_media_fields() { do_action( 'qode_framework_action_custom_media_fields' ); } public 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; } public function save_media_custom_fields( $post, $attachment ) { foreach ( $this->get_child_elements() as $child ) { $child->save_field_element( $post, $attachment ); } return $post; } }
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
class-qodeframeworkoptionsattachment.php
1020 bytes
0644
class-qodeframeworkpageattachment.php
2487 bytes
0644
N4ST4R_ID | Naxtarrr