• I’m testing out this plugin, got it working with ACF. Seems to work great.

    However, I can’t find the protect/unprotect links that the plugin info refers to.

    I see PWPF_medialib_view_link in the code, but I don’t see where those links actually print.

    I see that they’re supposed to be added to media_row_actions, but nothing changes on the output of that. Or anywhere that images/details are printed in the admin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author csorbamedia

    (@csorbamedia)

    Dear,

    Did you already find the links?
    It is in the Media Library.

    Stephan

    Thread Starter filever10

    (@filever10)

    I don’t see the option anywhere. I was able to get it to protect by field name with ACF in a custom function. But neither the media library, or the media dialog to select/upload/edit shows a protect/unprotect option.

    I would like to not HAVE to do it by field, because eventually they may be changed to unprotected or may want some protected and others not.

    The link to protect/unprotect that shows in the screenshots, doesn’t show at all for me.

    I’ve tried disabling all other plugins, and still nothing.

    Plugin Author csorbamedia

    (@csorbamedia)

    Dear,

    Which WP version do you have?

    Stephan

    Thread Starter filever10

    (@filever10)

    It’s been the same for me for the last 2 releases. On the latest version now. 5.5.1

    Thread Starter filever10

    (@filever10)

    Seems like PWPF_medialib_view_link isn’t actually adding the options to the display. the view, unprotect, and protect actions don’t show. Even if I remove the conditional logic, or put anything in that function, nothing prints there. I don’t see signs of it firing.

    Thread Starter filever10

    (@filever10)

    It’s the same if I load it through the plugin uploader, media library, or preprocess it with an upload field on a post, like:

    if (class_exists('PWPF_Hooks') && class_exists('acf')) {
        $PWPF_hooks = new PWPF_Hooks;
        $field_name = 'asset';
    
        add_filter('acf/upload_prefilter/name='.$field_name, array($PWPF_hooks, 'PWPF_acf_upload_prefilter'), 10, 3);
    }

    Those options don’t show on the media dialog, in the media library, or on the individual media pages with the other options; or anywhere that media_row_actions is typically executed.

    • This reply was modified 4 years, 2 months ago by filever10. Reason: wrong function ref
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Protect/Unprotect Links Missing’ is closed to new replies.