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; } add_action( 'wsal_sensors_manager_add', /** * Adds sensors classes to the Class Helper * * @return void * * @since latest */ function () { require_once __DIR__ . '/../wp-security-audit-log/sensors/class-tablepress-sensor.php'; Classes_Helper::add_to_class_map( array( 'WSAL\\Plugin_Sensors\\TablePress_Sensor' => __DIR__ . '/../wp-security-audit-log/sensors/class-tablepress-sensor.php', ) ); } );