base !== 'edit' ) { return; } // Bail if the Post isn't a supported Post Type. if ( ! in_array( $screen->post_type, convertkit_get_supported_post_types(), true ) ) { return; } // Enqueue JS. wp_enqueue_script( 'convertkit-admin-quick-edit', CONVERTKIT_PLUGIN_URL . 'resources/backend/js/quick-edit.js', array( 'jquery' ), CONVERTKIT_PLUGIN_VERSION, true ); // Enqueue CSS. wp_enqueue_style( 'convertkit-admin-bulk-quick-edit', CONVERTKIT_PLUGIN_URL . 'resources/backend/css/bulk-quick-edit.css', array(), CONVERTKIT_PLUGIN_VERSION ); } /** * Outputs hidden inline data in each Post's Title column, which the Quick Edit * JS can read when the user clicks the Quick Edit link in a WP_List_Table. * * @since 1.9.8.0 * * @param WP_Post $post Post. */ public function quick_edit_inline_data( $post ) { // Bail if the Post isn't a supported Post Type. if ( ! in_array( $post->post_type, convertkit_get_supported_post_types(), true ) ) { return; } // Fetch Post's Settings. $settings = new ConvertKit_Post( $post->ID ); // Output the Post's ConvertKit settings as hidden data- attributes, which // the Quick Edit JS can read. foreach ( $settings->get() as $key => $value ) { // If the value is blank, set it to zero. // This allows Quick Edit's JS to select the correct