Support » Plugin: p5 : Plenty of Perishable Passwords for Protected Posts » Add More Fields Password Protected Form

Viewing 1 replies (of 1 total)
  • Plugin Author Cyril Batillat

    (@cyrilbatillat)

    Hi,

    As P5 plugin, you could use native WordPress hooks to add more fields in the submit box :

    // Hook to add custom markup in submitbox
    add_action(
        'post_submitbox_misc_actions',
        'your_function'
    );
    // Save submitted data
    add_action(
        'save_post',
        'your_function_save'
    );

    To display your custom markup in P5 wrapper, you could use some JS. For example :

    $(document).ready(function() {
        $('#p5-section').append('#your-markup-id');
    });

    Note : if your issue is about adding more fields for each password, then it’s not currently possible : I have not implemented hooks here yet. Let me know…

Viewing 1 replies (of 1 total)
  • The topic ‘Add More Fields Password Protected Form’ is closed to new replies.