1057 | | call_user_func($box['callback'], $object, $box); |
| 1057 | |
| 1058 | /** |
| 1059 | * Fires first thing inside the meta_box content |
| 1060 | * |
| 1061 | * @since 4.1.2 |
| 1062 | * |
| 1063 | * @param mixed $object The full object. Could be a post, user, comment (etc) object |
| 1064 | * @param array $box Array of meta_box parameters |
| 1065 | */ |
| 1066 | do_action( 'before_meta_box_callback', $object, $box ); |
| 1067 | |
| 1068 | /** |
| 1069 | * Fires first thing inside the meta_box content |
| 1070 | * |
| 1071 | * The dynamic portion of the hook name, `$box['id']`, is the id of the registered meta_box. |
| 1072 | * |
| 1073 | * @since 4.1.2 |
| 1074 | * |
| 1075 | * @param mixed $object The full object. Could be a post, user, comment (etc) object |
| 1076 | * @param array $box Array of meta_box parameters |
| 1077 | */ |
| 1078 | do_action( "before_{$box['id']}_meta_box_callback", $object, $box ); |
| 1079 | |
| 1080 | // Fire off the registered meta box callback function |
| 1081 | call_user_func( $box['callback'], $object, $box ); |
| 1082 | |
| 1083 | /** |
| 1084 | * Fires last inside the meta_box content |
| 1085 | * |
| 1086 | * @since 4.1.2 |
| 1087 | * |
| 1088 | * @param mixed $object The full object. Could be a post, user, comment (etc) object |
| 1089 | * @param array $box Array of meta_box parameters |
| 1090 | */ |
| 1091 | do_action( 'after_meta_box_callback', $object, $box ); |
| 1092 | |
| 1093 | /** |
| 1094 | * Fires last inside the meta_box content |
| 1095 | * |
| 1096 | * The dynamic portion of the hook name, `$box['id']`, is the id of the registered meta_box. |
| 1097 | * |
| 1098 | * @since 4.1.2 |
| 1099 | * |
| 1100 | * @param mixed $object The full object. Could be a post, user, comment (etc) object |
| 1101 | * @param array $box Array of meta_box parameters |
| 1102 | */ |
| 1103 | do_action( "after_{$box['id']}_meta_box_callback", $object, $box ); |
| 1104 | |