WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
[resolved] customizing custom fields (2 posts)

  1. BillyAtStudioPretty
    Member
    Posted 1 year ago #

    I have a repeater field with an image field inside. I'm also using the Post Thumbnail Editor plugin. what I would like to know is if there is a hook that I can use to hook a function that returns a link to the thumbnail editor either into the acf image editor or into the field (underneath the thumbnail or something?)

    Thanks in advance :)
    Billy

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. BillyAtStudioPretty
    Member
    Posted 1 year ago #

    I solved this myself by poking around in wp-admin/includes/media.php

    function my_image_attachment_fields_to_edit($form_fields, $post) {
    	$pte = pte_media_row_actions("", $post, "");
    	$pte = $pte['pte'];
    	$form_fields["custom_sizes"] = array(
    			"label" => __("Sizes"),
    			"input" => "html",
    			"html" => $pte
    	);
    	return $form_fields;
    }
    
    add_filter("attachment_fields_to_edit", "my_image_attachment_fields_to_edit", null, 2);

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic