• How is this function being called>?

    139   function column_phone($item)
    140	 {
    141	        return '<em>' . $item['phone'] . '</em>';
    142	  }
Viewing 1 replies (of 1 total)
  • DownRightGamer

    (@rcarmichael)

    I don’t fully understand it either but the function column_phone($item) is dependent on whatever you put in place of “phone” must relate to data in the plugin. You can use this to manipulate all kinds of columns.

    For example, i’ve set one up for a start date format:

    function column_start_date($item) {
       if (!empty($item['start_date']) && $item['start_date'] != '0000-00-00') {
          return date("M j, Y", strtotime($item['start_date']));
       } else { ''; }
    }
Viewing 1 replies (of 1 total)
  • The topic ‘function column_phone’ is closed to new replies.