Replies
I was looking around in class-mpp-admin-post-helper.php and found this:
class MPP_Admin_Post_Helper private function __construct () $this->template_dir = mediapress()->get_path() . 'admin/templates/';
So, seems there is no way to set this directory to use the theme…
Can we have a future release where we define a constant, like this?
For example:
define( 'MPP_GALLERY_SLUG', 'my_custom_slug'); // works great define( 'MPP_ADMIN_TEMPLATE_DIR', '/mytheme/mediapress/admin'); // new feature
(Unless there is a way to modify the admin/templates/gallery PHP files that I can not see here)
ah, yes. I see. thank you very much.
I have carefully re-read your posts here and examined each function mentioned a second time.
I am now able to edit/save the media IPTC, XMP and EXIF on upload.I want to make sure I am handling this clearly.
consider the following situation:In my own class MPP_IPTC_data_Helper
add_action( ‘mpp_media_added’, array( $this, ‘my_add_media_IPTC’ ) );— and that works great, I am able to edit the meta values I seek based on your suggestions.
however, should I also do this as well?
add_action( ‘wp_ajax_mpp_add_media’, array( $this, ‘my_add_media_IPTC’ ) );
when would I need/want to use wp_ajax_mpp_add_media, if at all?ok.
so… looking into add_action( ‘wp_ajax_mpp_add_media’, ‘my_custom_function’ );
but since that action does not exist till private function setup() in MPP_Ajax_Helper
because its a private function of the class it therefore seems to me that I am prevented from extending any functionality there… or am I wrong about this?mpp_media_added – I see the same problem there as well.
add_action( ‘mpp_media_added’, ‘my_custom_function’, 9, 9 );
will that really work? Its not available till after MPP_Gallery_Categories_Helper-> setup()
but in that case I see its a public function… so, will that work?Thank you! I will look closer at those.
Is there any way to hook into the following?
mpp_add_media()
add_media()
mpp_get_title_desc_from_meta()
get_meta()we need some way to update the initial $media_data on/around “first upload”
That worked great!
Thank you, excellent.
It is now much easier for us to find our company media.Is there a way to move the images
out of the “WP->Media->Library”
and into a new page called “Media Press->Media->Uploads”?Awesome. Thank you!
Could you tell us what PHP code is needed here in the forum and explain a bit?
Maybe just a few functions/actions/hooks so we can get started within our theme to fix the issue at hand.- This reply was modified 5 years, 5 months ago by Christian W Zagarskas.
I would love to see this as well.
I was thinking about hacking this up to work with mediapress…
https://wordpress.org/plugins/regenerate-thumbnails/The functions are pretty clear, I suspect I could tie them into mpp_actions…
thoughts?