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?
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?
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?
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 3 years, 3 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…
The functions are pretty clear, I suspect I could tie them into mpp_actions…