esc_html__( 'TablePress', 'wsal-tablepress' ), ); // combine the two arrays. $objects = array_merge( $objects, $new_objects ); return $objects; } function wsal_tablepress_add_custom_event_type( $types ) { $new_types = array( 'imported' => __( 'Imported', 'wsal-tablepress' ), ); // combine the two arrays. $types = array_merge( $types, $new_types ); return $types; } /** * Adds new ignored CPT for our plugin * * @method wsal_tablepress_add_custom_ignored_cpt * @since 1.0.0 * @param array $post_types An array of default post_types. * @return array */ function wsal_tablepress_add_custom_ignored_cpt( $post_types ) { $new_post_types = array( 'tablepress_table', ); // combine the two arrays. $post_types = array_merge( $post_types, $new_post_types ); return $post_types; }