'pre', 'style' => 'button', 'button-text' => 'Copy', 'button-title' => 'Copy', 'button-copy-text' => 'Copied!', 'button-position' => 'inside', ); $stored_data = Copy_The_Code_Page::get_instance()->get_page_settings(); $data = wp_parse_args( $stored_data, $defaults ); $args = array( 'post_type' => 'copy-to-clipboard', 'post_status' => 'publish', 'post_title' => $data['selector'], 'meta_input' => $data, ); wp_insert_post( $args ); } } /** * Kicking this off by calling 'get_instance()' method */ Copy_The_Code_Update::get_instance(); endif;