• Resolved BernWoz

    (@bernwoz)


    Mailpoet recommends using codesnippets – I have downloaded and activated this plugin but I do not have any documentation how to add code correctly. Milpoet provides some examples but to I apply these as php or html in Codesnippets?
    You can see my manage subscription page and the tick boxes for subscription options need to be tidied/removed etc.
    Please advise.
    Thanks in advance
    Bernard Wozny

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter BernWoz

    (@bernwoz)

    Never mind, I worked this out by trial and error.
    For your information I list the codes below (in PHP snippets)
    You can see what I’m using and not using (unset)

    add_filter( 'mailpoet_manage_subscription_page_form_fields', 'mp_remove_manage_fields', 10);
    function mp_remove_manage_fields( $form ) {	
    
    	//unset($form[2]); // Status Dropdown
    	unset($form[3]); // message
    	unset($form[4]); // List Selection Dropdown???
    	unset($form[5]); // news letter option
    	unset($form[6]); // comment
    	unset($form[7]); // write your comment here
    	unset($form[8]); // your lists 
    	//unset($form[9]); // save button
    	//unset($form[10]); // unknown
    
    	return $form;
    }
    Plugin Support Dani F. a11n

    (@danielinhou)

    Hi there @bernwoz 👋🏽!

    Thank you for reaching out to MailPoet Support!

    Never mind, I worked this out by trial and error.

    Thank you so much for publishing this, it will certainly help other users in the future.

    Please open up a new thread if you need help with anything else.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using Code Snippets with Mailpoet’ is closed to new replies.