/** * Change Post Title By Post ID * * Ex: Change Global Template Kit Style Name By Post ID * * @param number $id The Post ID. * @param string $title The New Post Title. */ function change_post_title_by_id( $id, $title ) { $post_update = array( 'ID' => $id, 'post_title' => $title, ); wp_update_post( $post_update ); } /** RUN This Function for Execute || Remove Double-Slash `//` || Change `0000` to Post ID */ // change_post_title_by_id( 0000, 'New Title');