• Resolved thaiscapes

    (@dragonc)


    Please create a backend method to enable/disable the front end ‘register for this event’ button. I notice that its been requested before. For my site l cant use the plugin without that option. The suggested workaround by altering php files isnt something l want to try as I have zero knowledge of php

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @dragonc,

    It is part of customization and if you want to then you must have basic knowledge of PHP or WordPress code. If are not sure then please ask your developer to do this.

    Add a custom field from field editor and then apply the following code to your theme’s functions.php file.

    add_filter('event_manager_attendees_can_register','custom_registration_enable_disable',10,2);
    function custom_registration_enable_disable($can_register,$post){
    		
    		$registration_button = get_post_meta($post->ID,'_registration_button',true);
    		if( !$registration_button ){
    			$can_register = false;
    		}
    	return $can_register;
    }

    You must have to create field name with “registration button” to generate key _registration_button

    Thank you

    Thread Starter thaiscapes

    (@dragonc)

    Thanks for that but l specifically mentioned that l have no php knowledge. And l do not have a ‘developer’ what ever that is.
    I was requesting that you implement it on your next update. As it requires change to php l guess that for you it would not be difficult. But as you dont think its a useful change then l will use a different plugin

    Hi @dragonc,

    Please create a support ticket here our team will help you.

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Suggestion for next update’ is closed to new replies.