/** * Initialization function, similar to __construct() * * @since 1.00 * * @return void */ public static function initialize() { MLAOptions::_load_option_templates(); if ('checked' == MLACore::mla_get_option('enable_iptc_exif_mapping') || 'checked' == MLACore::mla_get_option('enable_custom_field_mapping') || 'checked' == MLACore::mla_get_option('enable_iptc_exif_update') || 'checked' == MLACore::mla_get_option('enable_custom_field_update')) { add_filter('wp_handle_upload_prefilter', 'MLAOptions::mla_wp_handle_upload_prefilter_filter', 1, 1); add_filter('wp_handle_upload', 'MLAOptions::mla_wp_handle_upload_filter', 1, 1); add_action('add_attachment', 'MLAOptions::mla_add_attachment_action', 0x7fffffff, 1); add_filter('wp_update_attachment_metadata', 'MLAOptions::mla_update_attachment_metadata_filter', 0x7fffffff, 2); } }