• Resolved Friedrich72

    (@friedrich72)


    Is there a way to add some html to the Recurring Events list page without modifying the core EM code? (…/wp-admin/edit.php?post_type=event-recurring)
    My goal is to display a ‘max selectable date’ variable from wp_options. I already have the ‘max date’ created as a variable. I just need to display it on that page.

    https://www.ads-software.com/plugins/events-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Do you actually want to run some code, or just display a message?

    Thread Starter Friedrich72

    (@friedrich72)

    Yes, I’ll be running this small bit which calls my 3rd style as a variable. In this case I’m using the name of the style “End Date=2015-06-15” as the maxDate in my popup calendar. I already have it working in em-event-posts-admin.php in the admin_notices() function , but i dont want to keep it there.

    $my_em_styles = (is_array(get_option('my_em_styles'))) ? get_option('my_em_styles'):array();
    	    $kumumaxdateex = explode ('=',$my_em_styles[3]);
    	    $kumumaxdate = $kumumaxdateex[1];
    	    $pubmaxselectabledate = sprintf(__( 'Max Publicly Selectable Date : '.$kumumaxdate));
    ?><div class="updated"><p><?php echo $warning ?></p></div><div class="updated"><p><?php echo $pubmaxselectabledate; ?></p></div><?php
    	}

    The reason I want to display it in the Recurring Events page is just a reminder to whoever is loading the events to change it if they need to. The popup with the maxDate range is part of a custom satellite application that uses Events Manager to display our hours of operation. – just in case you were wondering why we are doing it that way.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    did you already looked into events-manager/classes/em-event-posts-admin.php ?

    Thread Starter Friedrich72

    (@friedrich72)

    Angelo, can you tell me how you would modify this file? Would I duplicate the class in my functions.php? Can you give me an example of how to modify, say, the header text?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Modifying the Recuring Events list page’ is closed to new replies.