1 | <?php |
||
7 | class Yikes_Inc_Easy_Mailchimp_Extender_Helper { |
||
8 | |||
9 | /** |
||
10 | * Helper functions to help out with extensions (still fleshing out) |
||
11 | * @since 6.0 |
||
12 | * @ Parameters (array of data) |
||
13 | * - Section ID - id of the section, should be a slug style text ie: 'custom-section' |
||
14 | * - Link Text - Visible text for this link ie: 'Custom Section' |
||
15 | * - Dashicon - class of the icon you would like to use for this link |
||
16 | **/ |
||
17 | public static function add_edit_form_section_link( $link_array=array() ) { |
||
37 | |||
38 | /** |
||
39 | * Helper functions to help out with extensions (still fleshing out) |
||
40 | * @since 6.0 |
||
41 | * @ Parameters: |
||
42 | * - Section ID - id of the section, should be a slug style text ie: 'custom-section' |
||
43 | * - Class - class file to call function from? |
||
44 | * - Main Callback - call back for main section |
||
45 | * - Main Section Title - main section title |
||
46 | * - Sidebar Callback - callback for the sidebar section |
||
47 | * - Sidebar Title - title of the sidebar section |
||
48 | * - Class - class to reference funtions out of (optiona, if left blank functions should be defined in functions.php (or outside of a class)) |
||
49 | **/ |
||
50 | public static function add_edit_form_section( $section_array=array() ) { |
||
60 | |||
61 | /** |
||
62 | * Check if the custom section is single or two columns (with sidebar) |
||
63 | * @since 6.0 |
||
64 | * @Parameters: |
||
65 | * - Section Data - the array of data associated with the custom field you've set up |
||
66 | */ |
||
67 | public static function is_custom_section_two_column( $custom_section_data ) { |
||
72 | |||
73 | } |
||
74 | new Yikes_Inc_Easy_Mailchimp_Extender_Helper; |
||
76 | ?> |
||
|
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.